Skip to content

Commit

Permalink
Fixing failing test that happened between 12:00 & 12:59
Browse files Browse the repository at this point in the history
  • Loading branch information
markstory committed Jul 2, 2011
1 parent c2a9626 commit be09c67
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Cake/View/Helper/FormHelper.php
Expand Up @@ -1990,7 +1990,7 @@ public function dateTime($fieldName, $dateFormat = 'DMY', $timeFormat = '12', $a
$meridian = 'pm';
} elseif ($time[0] == '00' && $timeFormat == '12') {
$time[0] = 12;
} elseif ($time[0] > 12) {
} elseif ($time[0] >= 12) {
$meridian = 'pm';
}
if ($time[0] == 0 && $timeFormat == '12') {
Expand Down

0 comments on commit be09c67

Please sign in to comment.