From 6b015d97712afd97bf90be2ce28c3006596d5c5b Mon Sep 17 00:00:00 2001 From: euromark Date: Tue, 30 Apr 2013 14:54:09 +0200 Subject: [PATCH] fix select hours for 0/12 --- lib/Cake/View/Helper/FormHelper.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Cake/View/Helper/FormHelper.php b/lib/Cake/View/Helper/FormHelper.php index 72ea0fdd0..d62c86809 100644 --- a/lib/Cake/View/Helper/FormHelper.php +++ b/lib/Cake/View/Helper/FormHelper.php @@ -2207,7 +2207,7 @@ class FormHelper extends AppHelper { if ($attributes['value'] > 12 && !$format24Hours) { $attributes['value'] -= 12; } - if ($attributes['value'] === '00' && !$format24Hours) { + if (($attributes['value'] === 0 || $attributes['value'] === '00') && !$format24Hours) { $attributes['value'] = 12; }