summaryrefslogtreecommitdiff
path: root/src/web/_views/template
diff options
context:
space:
mode:
authorFreya Murphy <freya@freyacat.org>2024-05-28 21:03:16 -0400
committerFreya Murphy <freya@freyacat.org>2024-05-28 21:03:16 -0400
commit268dfc987664416db099761d51a5c007eb926904 (patch)
tree8272ea615092a412d9da567e70e9468027219c8c /src/web/_views/template
parente (diff)
downloadxssbook2-268dfc987664416db099761d51a5c007eb926904.tar.gz
xssbook2-268dfc987664416db099761d51a5c007eb926904.tar.bz2
xssbook2-268dfc987664416db099761d51a5c007eb926904.zip
fix date
Diffstat (limited to 'src/web/_views/template')
-rw-r--r--src/web/_views/template/comment.php2
-rw-r--r--src/web/_views/template/post.php2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/web/_views/template/comment.php b/src/web/_views/template/comment.php
index cf2c0b4..72bcedf 100644
--- a/src/web/_views/template/comment.php
+++ b/src/web/_views/template/comment.php
@@ -8,7 +8,7 @@
<div class="ml col sub-card">
<div class="row">
<strong><?=$format_model->name($user)?></strong>
- <span class="dim ml"><?=$format_model->date($comment['created'])?></span>
+ <span class="dim ml"><?=$this->main->date($comment['created'])?></span>
</div>
<?=$comment['content']?>
</div>
diff --git a/src/web/_views/template/post.php b/src/web/_views/template/post.php
index 3dcae8f..b8ea69a 100644
--- a/src/web/_views/template/post.php
+++ b/src/web/_views/template/post.php
@@ -5,7 +5,7 @@
<?=pfp($user)?>
<div class="col ml">
<strong><?=$user['first_name'] . ' ' . $user['last_name']?></strong>
- <span class="dim"><?=$post['created']?></span>
+ <span class="dim"><?=$this->main->date($post['created'])?></span>
</div>
</div>
<p>