⚠ In case you've missed it we are migrating to our new website, with a brand new forum. For more details about the migration you can read our blog post for website migration. This forum is read-only and soon will be archived. ⚠

mjuliand's Content

There have been 1 items by mjuliand (Search limited from 05-December 20)

By content type

See this member's

Sort by                Order  

#148601 Format date in column using callbackColumn

Posted by mjuliand on 18 November 2018 - 04:49 PM in Grocery CRUD Enterprise

Hard way to do it:


Edit Grocery_CRUD.php in libraries folder


about in line 295 change this:

list($hours,$minutes) = explode(":",substr($value,11));
$value = date($this->php_date_format." - H:i", mktime ((int)$hours , (int)$minutes , 0, (int)$month , (int)$day ,(int)$year));

to this:

list($hours,$minutes,$seconds) = explode(":",substr($value,11));
$value = date($this->php_date_format." - H:i:s", mktime ((int)$hours , (int)$minutes , (int)$seconds, (int)$month , (int)$day ,(int)$year));