summaryrefslogtreecommitdiffstats
path: root/lib/template.php
diff options
context:
space:
mode:
authorAlessandro Cosentino <cosenal@gmail.com>2012-11-13 19:18:26 -0500
committerAlessandro Cosentino <cosenal@gmail.com>2012-11-13 19:18:26 -0500
commitaa917cfb1872e77970ffed5571b5a96dc1387525 (patch)
treec8296e666cf237dc96598dce859d750255b92554 /lib/template.php
parentc353568ea09ef89e82c7b0f35b8d646b9c35005d (diff)
downloadnextcloud-server-aa917cfb1872e77970ffed5571b5a96dc1387525.tar.gz
nextcloud-server-aa917cfb1872e77970ffed5571b5a96dc1387525.zip
uncomment hours entries in relative date functions
Diffstat (limited to 'lib/template.php')
-rw-r--r--lib/template.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/template.php b/lib/template.php
index 3d3589abd1e..48224130fa8 100644
--- a/lib/template.php
+++ b/lib/template.php
@@ -103,8 +103,8 @@ function relative_modified_date($timestamp) {
if($timediff < 60) { return $l->t('seconds ago'); }
else if($timediff < 120) { return $l->t('1 minute ago'); }
else if($timediff < 3600) { return $l->t('%d minutes ago', $diffminutes); }
- //else if($timediff < 7200) { return '1 hour ago'; }
- //else if($timediff < 86400) { return $diffhours.' hours ago'; }
+ else if($timediff < 7200) { return '1 hour ago'; }
+ else if($timediff < 86400) { return $diffhours.' hours ago'; }
else if((date('G')-$diffhours) > 0) { return $l->t('today'); }
else if((date('G')-$diffhours) > -24) { return $l->t('yesterday'); }
else if($timediff < 2678400) { return $l->t('%d days ago', $diffdays); }