fix: pc文章详情发布时间中英文区分
This commit is contained in:
@@ -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);
|
||||
|
||||
// 获取分享配置相关
|
||||
|
||||
Reference in New Issue
Block a user