diff options
| author | Eltrac Koalar <hi@guhub.cn> | 2022-08-21 21:37:55 +0800 |
|---|---|---|
| committer | Eltrac Koalar <hi@guhub.cn> | 2022-08-21 21:37:55 +0800 |
| commit | 5977636a5fc5b4fed253b4138b3f2d83377e6457 (patch) | |
| tree | 5b79a1c09ab3028daf16a774a922939fe69a01e8 /single.php | |
| parent | 8c76f980f0f8bf169de18b32fa863fd294ff7ec2 (diff) | |
:apple: Add: 将「更人性化的时间」运用在文章时间显示上
Diffstat (limited to 'single.php')
| -rw-r--r-- | single.php | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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> |
