fix: pc文章详情发布时间中英文区分

This commit is contained in:
2025-06-11 18:09:08 +08:00
parent 71f445395c
commit e85dc5886c
2 changed files with 149 additions and 147 deletions

View File

@@ -93,6 +93,12 @@ 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);
// 获取分享配置相关