diff --git a/resources/inc/class.resources_reserve.inc.php b/resources/inc/class.resources_reserve.inc.php index 7d79251ba6..c342432cfa 100644 --- a/resources/inc/class.resources_reserve.inc.php +++ b/resources/inc/class.resources_reserve.inc.php @@ -250,7 +250,7 @@ class resources_reserve { { 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 {