diff options
author | Alessandro Cosentino <cosenal@gmail.com> | 2012-11-13 15:38:54 -0500 |
---|---|---|
committer | Alessandro Cosentino <cosenal@gmail.com> | 2012-11-13 15:38:54 -0500 |
commit | 7c5d3649a3f137cc4c4bdd36dbb3639f2638d52c (patch) | |
tree | ba7bc9255f90db3f4cc2f2fb0f3a26190b55ffd1 /templates/part.items.php | |
parent | 24c3d0c92e954cbe76c1742f4155f8488caa1ad1 (diff) |
use the core functions for relative dates
Diffstat (limited to 'templates/part.items.php')
-rw-r--r-- | templates/part.items.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/templates/part.items.php b/templates/part.items.php index fcb2b12d8..efad98830 100644 --- a/templates/part.items.php +++ b/templates/part.items.php @@ -22,8 +22,9 @@ foreach($items as $item) { echo '<li class="feed_item ' . $newsItemClass .'" data-id="' . $item->getId() . '" data-feedid="' . $item->getFeedId() . '">'; echo '<span class="timestamp">' . $item->getDate() . '</span>'; + $relative_modified_date = OCP\relative_modified_date($item->getDate()); echo '<h2 class="item_date"><time class="timeago" datetime="' . - date('c', $item->getDate()) . '">' . date('F j, Y, g:i a', $item->getDate()) . '</time>' . '</h2>'; + date('c', $item->getDate()) . '">' . $relative_modified_date . '</time>' . '</h2>'; echo '<div class="utils">'; echo '<ul class="primary_item_utils">'; |