summaryrefslogtreecommitdiff
path: root/single.php
diff options
context:
space:
mode:
authorEltrac Koalar <hi@guhub.cn>2022-08-21 21:37:55 +0800
committerEltrac Koalar <hi@guhub.cn>2022-08-21 21:37:55 +0800
commit5977636a5fc5b4fed253b4138b3f2d83377e6457 (patch)
tree5b79a1c09ab3028daf16a774a922939fe69a01e8 /single.php
parent8c76f980f0f8bf169de18b32fa863fd294ff7ec2 (diff)
:apple: Add: 将「更人性化的时间」运用在文章时间显示上
Diffstat (limited to 'single.php')
-rw-r--r--single.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/single.php b/single.php
index 7b62c25..1105cb0 100644
--- a/single.php
+++ b/single.php
@@ -7,7 +7,7 @@
<h1 class="post-title post-title-atpage<?php if($this->is('page')): ?> page-title-atpage<?php endif; ?>" itemprop="name headline"><?php $this->title() ?></h1>
<?php if($this->is('post')): ?>
<ul class="post-meta post-meta-atpage">
- <li><time datetime="<?php $this->date('c'); ?>" itemprop="datePublished"><?php $this->date(); ?></time></li>
+ <li><time datetime="<?php $this->date('c'); ?>" itemprop="datePublished"><?php echo Matcha::date($this->created); ?></time></li>
<li><?php $this->category(','); ?></li>
<?php if($this->user->hasLogin()):?>
<li><a href="<?php $this->options->adminUrl(); ?>write-post.php?cid=<?php echo $this->cid;?>" no-pjax>编辑</a></li>