summaryrefslogtreecommitdiff
path: root/modules/comment/views/comments.html.php
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2010-08-08 16:54:31 -0700
committerBharat Mediratta <bharat@menalto.com>2010-08-08 16:54:31 -0700
commit2dda8e22a7a32db8a5577aad0cff2b47ac0f9c63 (patch)
tree7825612b434293f99c298bc3bc8b189dbfe28cbc /modules/comment/views/comments.html.php
parentcdb6306d7e75451587fbc029b94ef197f42842f1 (diff)
Use the gallery helper date/time functions wherever we format date
time for the browser. Fixes ticket #1278.
Diffstat (limited to 'modules/comment/views/comments.html.php')
-rw-r--r--modules/comment/views/comments.html.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/comment/views/comments.html.php b/modules/comment/views/comments.html.php
index da45f57b..b524f5da 100644
--- a/modules/comment/views/comments.html.php
+++ b/modules/comment/views/comments.html.php
@@ -36,11 +36,11 @@
</a>
<? if ($comment->author()->guest): ?>
<?= t('on %date %name said',
- array("date" => date("Y-M-d H:i:s", $comment->created),
- "name" => html::clean($comment->author_name()))); ?>
+ array("date" => gallery::date_time($comment->created),
+ "name" => html::clean($comment->author_name()))); ?>
<? else: ?>
<?= t('on %date <a href="%url">%name</a> said',
- array("date" => date("Y-M-d H:i:s", $comment->created),
+ array("date" => gallery::date_time($comment->created),
"url" => user_profile::url($comment->author_id),
"name" => html::clean($comment->author_name()))); ?>
<? endif ?>