Date format in list view of simple Module
Hi,
I have adjusted the MY_config.php to format the date in "german" way as d.m.Y.
In the create and edit view of my modules everything is working fine. But in the list view the date is displayed as yyyy-mm-dd
How can I achieve that the date is displayed correctly?
Comments
function list_items($limit = NULL, $offset = NULL, $col = 'date_added', $order = 'desc', $just_count = FALSE) { $data = parent::list_items($limit, $offset, $col, $order); if (!$just_count) { foreach($data as $key => $val) { $data[$key]['date_added'] = english_date($data[$key]['date_added'], TRUE); } } if ($col == 'date_added') array_sorter($data, $col, $order); return $data; }