mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-05-19 19:09:13 -04:00
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:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user