summaryrefslogtreecommitdiff
path: root/modules/comment/views/admin_block_recent_comments.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/admin_block_recent_comments.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/admin_block_recent_comments.html.php')
-rw-r--r--modules/comment/views/admin_block_recent_comments.html.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/comment/views/admin_block_recent_comments.html.php b/modules/comment/views/admin_block_recent_comments.html.php
index d5aab84c..8b9634c5 100644
--- a/modules/comment/views/admin_block_recent_comments.html.php
+++ b/modules/comment/views/admin_block_recent_comments.html.php
@@ -7,7 +7,7 @@
alt="<?= p::clean($comment->author_name()) ?>"
width="32"
height="32" />
- <?= date("Y-M-d H:i:s", $comment->created) ?>
+ <?= gallery::date_time($comment->created) ?>
<?= t("<a href=#>%author_name</a> said <em>%comment_text</em>",
array("author_name" => p::clean($comment->author_name()),
"comment_text" => text::limit_words(p::clean($comment->text), 50))); ?>