fix: 文章列表及详情发布时间中英显示区分

This commit is contained in:
2025-06-19 16:26:10 +08:00
parent 9e73e1341b
commit 446ec81410
4 changed files with 69 additions and 8 deletions

View File

@@ -93,12 +93,6 @@ class Article extends Common
])
->bypk($id)
->find();
if (!$detail->isEmpty()) {
$detail->release_time = date('Y-m-d H:i:s', strtotime($detail->release_time));
if (cookie('think_lang') == 'en-us') {
$detail->release_time = 'Posted on ' . date('F j, Y', strtotime($detail->release_time));
}
}
View::assign('detail', $detail);
// 获取分享配置相关