mirror of
https://github.com/processwire/processwire.git
synced 2025-08-12 01:34:31 +02:00
Fix issue processwire/processwire-issues#1402
This commit is contained in:
@@ -90,7 +90,7 @@ class InputfieldDatetimeSelect extends InputfieldDatetimeType {
|
|||||||
|
|
||||||
for($n = 1; $n <= 12; $n++) {
|
for($n = 1; $n <= 12; $n++) {
|
||||||
$monthFormat = $abbreviate ? '%b' : '%B';
|
$monthFormat = $abbreviate ? '%b' : '%B';
|
||||||
$monthLabel = $sanitizer->entities(strftime($monthFormat, mktime(0, 0, 0, $n)));
|
$monthLabel = $sanitizer->entities(strftime($monthFormat, mktime(0, 0, 0, $n, 1)));
|
||||||
$months->addOption($n, $monthLabel);
|
$months->addOption($n, $monthLabel);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user