From 9356b136b85c0323beff32627c3242e9ebad9258 Mon Sep 17 00:00:00 2001 From: Jean-Christian Denis Date: Sun, 23 Apr 2023 14:01:52 +0200 Subject: [PATCH] use Date helper --- src/Widgets.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Widgets.php b/src/Widgets.php index afdafbf..e589d2c 100644 --- a/src/Widgets.php +++ b/src/Widgets.php @@ -16,11 +16,11 @@ namespace Dotclear\Plugin\postInfoWidget; use dcCore; use dcRecord; +use Dotclear\Helper\Date; use Dotclear\Helper\Html\Html; use Dotclear\Helper\L10n; use Dotclear\Plugin\widgets\WidgetsStack; use Dotclear\Plugin\widgets\WidgetsElement; -use dt; class Widgets { @@ -195,7 +195,7 @@ class Widgets $content .= self::li( $w, 'date', - dt::str( + Date::str( $w->dt_str, (int) strtotime(dcCore::app()->ctx->posts->f('post_dt')), dcCore::app()->blog->settings->get('system')->get('blog_timezone') @@ -207,7 +207,7 @@ class Widgets $content .= self::li( $w, 'create', - dt::str( + Date::str( $w->creadt_str, (int) strtotime(dcCore::app()->ctx->posts->post_creadt), dcCore::app()->blog->settings->get('system')->get('blog_timezone') @@ -219,7 +219,7 @@ class Widgets $content .= self::li( $w, 'update', - dt::str( + Date::str( $w->upddt_str, (int) strtotime(dcCore::app()->ctx->posts->f('post_upddt')), dcCore::app()->blog->settings->get('system')->get('blog_timezone')