From e5ec3de81f5f66dc1548f4a914902eb3cb73901f Mon Sep 17 00:00:00 2001 From: nanhaoluo <3075912108@qq.com> Date: Fri, 23 Jan 2026 16:06:41 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E8=AF=84=E8=AE=BA?= =?UTF-8?q?=E6=97=B6=E9=97=B4=E6=98=BE=E7=A4=BA=E4=B8=8D=E4=B8=80=E8=87=B4?= =?UTF-8?q?=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 将 human_time_diff() 的两个参数统一使用 GMT 时间戳 - get_comment_time('U', true) 返回 GMT 时间戳 - current_time('timestamp', true) 返回 GMT 时间戳 - 确保时间差计算使用相同时区,避免时区转换导致的时间偏差 - 修复了刚发送的评论显示为 8 小时前的问题 --- functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/functions.php b/functions.php index 1897548..9ced2bb 100644 --- a/functions.php +++ b/functions.php @@ -2069,7 +2069,7 @@ function argon_comment_format($comment, $args, $depth){
- +