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.
This commit is contained in:
Bharat Mediratta
2009-06-12 22:44:51 -07:00
parent 4166fbcd67
commit 26314d0ef8
8 changed files with 38 additions and 10 deletions

View File

@@ -117,7 +117,7 @@
</td>
<td>
<div class="right">
<? $item = $comment->item(); ?>
<? $item = $comment->item() ?>
<div class="gItem gPhoto">
<a href="<?= $item->url() ?>">
<? if ($item->has_thumb()): ?>
@@ -131,7 +131,7 @@
</a>
</div>
</div>
<p><?= date("Y-M-d", $comment->created); ?></p>
<p><?= gallery::date($comment->created) ?></p>
<?= p::clean($comment->text) ?>
</td>
<td>