Skip to content

Commit

Permalink
Fix incorrect default meridian
Browse files Browse the repository at this point in the history
Forgot to remove a line
  • Loading branch information
PhantomWatson committed Mar 14, 2013
1 parent ec56d82 commit 2ac5452
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion lib/Cake/View/Helper/FormHelper.php
Expand Up @@ -2390,7 +2390,6 @@ public function dateTime($fieldName, $dateFormat = 'DMY', $timeFormat = '12', $a
}
$change = (round($min * (1 / $interval)) * $interval) - $min;
$current->modify($change > 0 ? "+$change minutes" : "$change minutes");
$newTime = explode(' ', $current->format('Y m d H i a'));
$format = ($timeFormat == '12') ? 'Y m d h i a' : 'Y m d H i a';
$newTime = explode(' ', $current->format($format));
list($year, $month, $day, $hour, $min, $meridian) = $newTime;
Expand Down

0 comments on commit 2ac5452

Please sign in to comment.