From 3d89951c778265fb010d4bd20f93ced3ff7502d8 Mon Sep 17 00:00:00 2001
From: Bharat Mediratta
Date: Sat, 13 Jun 2009 13:44:51 +0800
Subject: 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.
Signed-off-by:
---
modules/comment/views/comment.html.php | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
(limited to 'modules/comment/views/comment.html.php')
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" />
- = t("on ") . date("Y-M-d H:i:s", $comment->created) ?>
- = p::clean($comment->author_name()) ?> = 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::clean($comment->text) ?>
--
cgit v1.2.3