From 7c5d3649a3f137cc4c4bdd36dbb3639f2638d52c Mon Sep 17 00:00:00 2001 From: Alessandro Cosentino Date: Tue, 13 Nov 2012 15:38:54 -0500 Subject: use the core functions for relative dates --- templates/part.items.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'templates/part.items.php') 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 '
  • '; echo '' . $item->getDate() . ''; + $relative_modified_date = OCP\relative_modified_date($item->getDate()); echo '

    ' . '

    '; + date('c', $item->getDate()) . '">' . $relative_modified_date . '' . ''; echo '
    '; echo '
      '; -- cgit v1.2.3