-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Description
Currently, to switch to EU date format you need to modify the code in 3 places. Some better one-place setting would be nice.
/template/common/calendar.html, line 5:
$('.date').datepicker({format: 'dd/mm/yyyy'});
/php/fw/DateUtils.php, lines 8-12
public static $DATE_FORMAT=0;
public static $DATE_FORMAT_STR='DD/MM/YYYY';
public static $TIME_FORMAT=0;
public static $TIME_FORMAT_STR='HH:MM';
/php/fw/parsepage.php, line 924, functionsec2date. Change "d" and "m" order in the switch block:
switch (strtolower($format)) {
case '':
$format = 'd/m/Y';
break;
case 'short':
$format = 'd/m/Y H:i';
break;
case 'long':
$format = 'd/m/Y H:i:s';
break;
case 'sql':
$format = 'Y-m-d H:i:s';
break;
}
Metadata
Metadata
Assignees
Labels
No labels