From 1b1ea263271ea30b9ab3e40ae1629d49b31e84cb Mon Sep 17 00:00:00 2001 From: Jean-Christian Denis Date: Sun, 23 Apr 2023 22:39:43 +0200 Subject: [PATCH] use Date helper --- src/Utils.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Utils.php b/src/Utils.php index 19a845c..23aa669 100644 --- a/src/Utils.php +++ b/src/Utils.php @@ -18,7 +18,7 @@ use dcAuth; use dcBlog; use dcCore; use dcUtils; -use dt; +use Dotclear\Helper\Date; class Utils { @@ -167,7 +167,7 @@ class Utils return ''; } - return "AND $field > TIMESTAMP '" . dt::str($pattern, time() - $time) . "' "; + return "AND $field > TIMESTAMP '" . Date::str($pattern, time() - $time) . "' "; } public static function periods(): array