summaryrefslogtreecommitdiff
path: root/modules/info/views
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2009-06-13 13:44:51 +0800
committer <unostar@danalan.info>2009-06-13 20:10:24 +0800
commit3d89951c778265fb010d4bd20f93ced3ff7502d8 (patch)
treeafa69eb44960e21112d28c78c3777ace9f55487d /modules/info/views
parent96b533f1b2fe4e01d7dd7e98631833c2e3c13a71 (diff)
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>
Diffstat (limited to 'modules/info/views')
-rw-r--r--modules/info/views/info_block.html.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/info/views/info_block.html.php b/modules/info/views/info_block.html.php
index f8e5f35e..9f9ec5df 100644
--- a/modules/info/views/info_block.html.php
+++ b/modules/info/views/info_block.html.php
@@ -31,7 +31,7 @@
<? if ($item->captured): ?>
<tr>
<th><?= t("Captured:") ?></th>
- <td><?= date("M j, Y H:i:s", $item->captured)?></td>
+ <td><?= gallery::date_time($item->captured) ?></td>
</tr>
<? endif ?>
<? if ($item->owner): ?>