⚠ 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

Member Since 18 Nov 2018
Offline Last Active Nov 18 2018 04:50 PM
-----

Posts I've Made

In Topic: Format date in column using callbackColumn

18 November 2018 - 04:49 PM

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));