From 8fe9f5954c983ce75763cc76de50422090f5ed92 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=80=E5=8D=8A?= <1094963513@qq.com> Date: Wed, 1 Jan 2025 23:49:59 +0000 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=9C=AC=E5=9C=B0=E6=97=B6?= =?UTF-8?q?=E9=97=B4=E5=8F=82=E6=95=B0=E6=97=A0=E6=95=88=E3=80=81=E4=BF=AE?= =?UTF-8?q?=E5=A4=8D=20=5F=5F=20=E5=87=BD=E6=95=B0=E7=9A=84=E5=8F=82?= =?UTF-8?q?=E6=95=B0=E4=BC=A0=E9=80=92=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 一半 <1094963513@qq.com> --- extend/fast/Date.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/extend/fast/Date.php b/extend/fast/Date.php index ce018f1b1..7a7e1f89e 100644 --- a/extend/fast/Date.php +++ b/extend/fast/Date.php @@ -124,7 +124,7 @@ class Date */ public static function human($remote, $local = null) { - $time_diff = (is_null($local) || $local ? time() : $local) - $remote; + $time_diff = (is_null($local) ? time() : $local) - $remote; $tense = $time_diff < 0 ? 'after' : 'ago'; $time_diff = abs($time_diff); $chunks = [ @@ -146,7 +146,7 @@ class Date break; } } - return __("%d $name%s $tense", $count, ($count > 1 ? 's' : '')); + return __("%d $name%s $tense", [$count, ($count > 1 ? 's' : '')]); } /** -- Gitee