mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-31 09:06:17 +00:00
fix select hours for 0/12
This commit is contained in:
parent
fab5a6f4d9
commit
6b015d9771
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue