Index: trunk/kernel/include/dates.php =================================================================== diff -u -r3282 -r3736 --- trunk/kernel/include/dates.php (.../dates.php) (revision 3282) +++ trunk/kernel/include/dates.php (.../dates.php) (revision 3736) @@ -196,12 +196,7 @@ global $objConfig; $timestr = strtoupper($timestr); - if($objConfig->Get("ampm_time")=="1") - { - $valid = Is12HourTime($timestr); - } - else - $valid = !Is12HourTime($timestr); + $valid = is12HourMode() ? Is12HourTime($timestr) : !Is12HourTime($timestr); $time = GetTimeParts($timestr); $valid = $valid && (($time["hour"]<24) && ($time["min"]<60) && ($time["sec"]<60));