Permalink
Browse files

fix select hours for 0/12

  • Loading branch information...
1 parent fab5a6f commit 6b015d97712afd97bf90be2ce28c3006596d5c5b @dereuromark dereuromark committed Apr 30, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/Cake/View/Helper/FormHelper.php
@@ -2207,7 +2207,7 @@ public function hour($fieldName, $format24Hours = false, $attributes = array())
if ($attributes['value'] > 12 && !$format24Hours) {
$attributes['value'] -= 12;
}
- if ($attributes['value'] === '00' && !$format24Hours) {
+ if (($attributes['value'] === 0 || $attributes['value'] === '00') && !$format24Hours) {
$attributes['value'] = 12;
}

0 comments on commit 6b015d9

Please sign in to comment.