mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-19 11:06:15 +00:00
Fix incorrect default meridian
Forgot to remove a line
This commit is contained in:
parent
ec56d828b0
commit
2ac545291a
1 changed files with 0 additions and 1 deletions
|
@ -2390,7 +2390,6 @@ class FormHelper extends AppHelper {
|
||||||
}
|
}
|
||||||
$change = (round($min * (1 / $interval)) * $interval) - $min;
|
$change = (round($min * (1 / $interval)) * $interval) - $min;
|
||||||
$current->modify($change > 0 ? "+$change minutes" : "$change minutes");
|
$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';
|
$format = ($timeFormat == '12') ? 'Y m d h i a' : 'Y m d H i a';
|
||||||
$newTime = explode(' ', $current->format($format));
|
$newTime = explode(' ', $current->format($format));
|
||||||
list($year, $month, $day, $hour, $min, $meridian) = $newTime;
|
list($year, $month, $day, $hour, $min, $meridian) = $newTime;
|
||||||
|
|
Loading…
Add table
Reference in a new issue