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:  <unostar@danalan.info>
This commit is contained in:
Bharat Mediratta
2009-06-13 13:44:51 +08:00
committed by
parent 96b533f1b2
commit 3d89951c77
8 changed files with 38 additions and 10 deletions

View File

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