summaryrefslogtreecommitdiff
path: root/modules/comment
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
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')
-rw-r--r--modules/comment/views/comments.html.php6
-rw-r--r--modules/comment/views/user_profile_comments.html.php4
2 files changed, 5 insertions, 5 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 ?>
diff --git a/modules/comment/views/user_profile_comments.html.php b/modules/comment/views/user_profile_comments.html.php
index a2a641ba..377b2d95 100644
--- a/modules/comment/views/user_profile_comments.html.php
+++ b/modules/comment/views/user_profile_comments.html.php
@@ -4,8 +4,8 @@
<? foreach ($comments as $comment): ?>
<li id="g-comment-<?= $comment->id ?>">
<p class="g-author">
- <?= t('on %date for %title ',
- array("date" => date("Y-M-d H:i:s", $comment->created),
+ <?= t("on %date for %title ",
+ array("date" => gallery::date_time($comment->created),
"title" => $comment->item()->title)); ?>
<a href="<?= $comment->item()->url() ?>">
<?= $comment->item()->thumb_img(array(), 50) ?>