diff --git a/README.md b/README.md index 8e3a833e..99700371 100644 --- a/README.md +++ b/README.md @@ -65,6 +65,9 @@ Argon 使用 [GPL V3.0](https://github.com/solstice23/argon-theme/blob/master/LI # 更新日志 +## 20200331 v0.922 ++ 修复评论编辑历史记录时间显示错误的问题 + ## 20200330 v0.921 + 修复评论编辑历史记录的 BUG + 优化搜索逻辑 diff --git a/functions.php b/functions.php index b95eeb41..320f0b3c 100644 --- a/functions.php +++ b/functions.php @@ -379,6 +379,7 @@ function get_comment_edit_history(){ $editHistory = array_reverse($editHistory); $res = ""; $position = count($editHistory) + 1; + date_default_timezone_set(get_option('timezone_string')); foreach ($editHistory as $edition){ $position -= 1; $res .= "