Fix 12 hour afternoons

This commit is contained in:
Nathan Gray 2012-05-03 02:15:35 +00:00
parent ab63063023
commit a4b71c7d3a

View File

@ -250,7 +250,7 @@ class resources_reserve {
{ {
if($GLOBALS['egw_info']['user']['preferences']['common']['timeformat'] == '12') if($GLOBALS['egw_info']['user']['preferences']['common']['timeformat'] == '12')
{ {
$sel_options['hour'][$i] = ($i < '12' ? $i .' am' : ($i-12).' pm'); $sel_options['hour'][$i] = ($i < '12' ? $i .' am' : ($i > 12 ? $i -12 : $i).' pm');
} }
else else
{ {