use Date helper

master
Jean-Christian Paul Denis 2023-04-23 22:39:43 +02:00
parent acbabf5b18
commit 1b1ea26327
Signed by: JcDenis
GPG Key ID: 1B5B8C5B90B6C951
1 changed files with 2 additions and 2 deletions

View File

@ -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