summaryrefslogtreecommitdiff
path: root/modules/comment/views/comment.html.php
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2009-06-12 22:44:51 -0700
committerBharat Mediratta <bharat@menalto.com>2009-06-12 22:44:51 -0700
commit26314d0ef85d4a1e73ca6c9bd728a4cfb8d46d6b (patch)
tree7e220587f1684b86ae2c18e46cd4425cc7ed1e7b /modules/comment/views/comment.html.php
parent4166fbcd67d828d42b0b1d3d27730355ca8dbce0 (diff)
Create gallery::date_time(), gallery::date() and gallery::time()
functions that format a unix timestamp into a date+time/date/time string. Partial fix for ticket #347.
Diffstat (limited to 'modules/comment/views/comment.html.php')
-rw-r--r--modules/comment/views/comment.html.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/modules/comment/views/comment.html.php b/modules/comment/views/comment.html.php
index 0337173b..ce52951b 100644
--- a/modules/comment/views/comment.html.php
+++ b/modules/comment/views/comment.html.php
@@ -8,8 +8,9 @@
width="40"
height="40" />
</a>
- <?= t("on ") . date("Y-M-d H:i:s", $comment->created) ?>
- <a href="#"><?= p::clean($comment->author_name()) ?></a> <?= t("said") ?>
+ <?= t("on %date_time, %author_name said",
+ array("date_time" => gallery::date_time($comment->created),
+ "author_name" => p::clean($comment->author_name()))) ?>
</p>
<div>
<?= p::clean($comment->text) ?>