From b96bc74176974b9f38d3f6c8639501754f53df69 Mon Sep 17 00:00:00 2001 From: Jean-Christian Denis Date: Wed, 26 Apr 2023 21:34:47 +0200 Subject: [PATCH] use dotclear Date Helper, fix #1 --- src/Widgets.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Widgets.php b/src/Widgets.php index 063680c..9be2be8 100644 --- a/src/Widgets.php +++ b/src/Widgets.php @@ -41,8 +41,8 @@ class Widgets $array_year[$i] = $i; } 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; + $i = str_repeat('0', (2 - strlen((string) $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;