Re: [virgodesign] Date format in ListPage field
Hi Avrom,
Sure, here's how to make the change globally.
- Open /lib/menus/default/list_functions.php
- Search for "Y-m-d" and find this code
if(@$schema[$fieldname]['type'] == 'date' && @!$schema[$fieldname]['showTime']) {
$value = date("Y-m-d", strtotime($record[$fieldname]));
}
- Remove the code in red so you're left with this:
if(@$schema[$fieldname]['type'] == 'date') {
$value = date("Y-m-d", strtotime($record[$fieldname]));
}
Hope that helps! Let me know if that works for you. :)
Dave Edis - Senior Developer
interactivetools.com