Add relative date support

Changed Date display to be relative.  If the relative date is hovered over it shows the actual date and time.
This commit is contained in:
chrislemonier 2014-02-25 12:12:57 -08:00
parent c242998e29
commit 1c224eb08a

View File

@ -62,7 +62,7 @@
<a href="?action=feed-items&amp;feed_id=<?= $feed['id'] ?>"><?= Helper\escape($feed['title']) ?></a> <a href="?action=feed-items&amp;feed_id=<?= $feed['id'] ?>"><?= Helper\escape($feed['title']) ?></a>
</li> </li>
<li class="hide-mobile"> <li class="hide-mobile">
<?= dt('%e %B %Y %k:%M', $item['updated']) ?> <span title="<?= dt('%e %B %Y %k:%M', $item['updated']) ?>"><?= Helper\relative_time(dt('%e %B %Y %k:%M', $item['updated'])) ?></span>
</li> </li>
<?php if ($item['enclosure']): ?> <?php if ($item['enclosure']): ?>
<li> <li>