use dotclear Date Helper, fix #1

This commit is contained in:
Jean-Christian Paul Denis 2023-04-26 21:34:47 +02:00
parent 862d72b040
commit b96bc74176
Signed by: JcDenis
GPG Key ID: 1B5B8C5B90B6C951

View File

@ -42,7 +42,7 @@ class Widgets
}
for ($i = 1;$i <= 12;$i++) {
$i = str_repeat('0', (2 - strlen((string) $i))) . $i;
$array_month[ucfirst(__(strftime('%B', (int) mktime(0, 0, 0, (int) $i, 1, 1970)))) . ' (' . $i . ')'] = $i;
$array_month[ucfirst(__(Date::strftime('%B', (int) mktime(0, 0, 0, (int) $i, 1, 1970)))) . ' (' . $i . ')'] = $i;
}
for ($i = 1;$i <= 31;$i++) {
$i = str_repeat('0', (2 - strlen((string) $i))) . $i;