From 1873e6ac3ac56c69b34430e0b14ccdfc3d9fa216 Mon Sep 17 00:00:00 2001 From: jsasg <735273025@qq.com> Date: Sat, 21 Jun 2025 10:21:32 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20mobile=20=E6=96=87=E7=AB=A0=E5=88=97?= =?UTF-8?q?=E8=A1=A8=E5=8F=91=E5=B8=83=E6=97=B6=E9=97=B4=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/index/common.php | 2 +- app/index/view/mobile/article/index.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/index/common.php b/app/index/common.php index 226b3689..6bc89d59 100644 --- a/app/index/common.php +++ b/app/index/common.php @@ -120,7 +120,7 @@ if (!function_exists('date_format_i18n')) { * @param bool $keep_time 是否保留时间 * @return string */ - function date_format_i18n(int|string $datetime, string $lang = '', bool $keep_time = false): string + function date_format_i18n(int|string|null $datetime, string $lang = '', bool $keep_time = false): string { // 处理语言标识,若未提供则使用当前语言设置,并转换为小写 $lang = $lang ?: Lang::getLangSet(); diff --git a/app/index/view/mobile/article/index.html b/app/index/view/mobile/article/index.html index 676293f2..319c3eb4 100644 --- a/app/index/view/mobile/article/index.html +++ b/app/index/view/mobile/article/index.html @@ -45,7 +45,7 @@
{$ar.desc|raw}
- {$ar.release_time|default=''|date='Y-m-d'} + {$ar.release_time|date_format_i18n} {/volist}