summaryrefslogtreecommitdiff
path: root/modules/info
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2009-06-12 22:44:51 -0700
committerBharat Mediratta <bharat@menalto.com>2009-06-12 22:44:51 -0700
commit26314d0ef85d4a1e73ca6c9bd728a4cfb8d46d6b (patch)
tree7e220587f1684b86ae2c18e46cd4425cc7ed1e7b /modules/info
parent4166fbcd67d828d42b0b1d3d27730355ca8dbce0 (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.
Diffstat (limited to 'modules/info')
-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): ?>