Permalink
Browse files

Fix incorrect default meridian

Forgot to remove a line
  • Loading branch information...
1 parent ec56d82 commit 2ac545291af53f6e93a5fc2e7dbe900ba9d9ccb0 @PhantomWatson PhantomWatson committed Mar 14, 2013
Showing with 0 additions and 1 deletion.
  1. +0 −1 lib/Cake/View/Helper/FormHelper.php
@@ -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;

0 comments on commit 2ac5452

Please sign in to comment.