Use the gallery helper date/time functions wherever we format date

time for the browser.  Fixes ticket #1278.
This commit is contained in:
Bharat Mediratta
2010-08-08 16:54:31 -07:00
parent cdb6306d7e
commit 2dda8e22a7
5 changed files with 9 additions and 9 deletions

View File

@@ -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 ?>