From 54e44c716804616059ddb0a0e3069a0014a75326 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Tue, 11 Jun 2013 17:12:48 +0200 Subject: [PATCH] Short time should only be displayed if it's less than 6 days ago --- wcfsetup/install/files/js/WCF.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wcfsetup/install/files/js/WCF.js b/wcfsetup/install/files/js/WCF.js index 56fe5f9cd3..25c912838e 100755 --- a/wcfsetup/install/files/js/WCF.js +++ b/wcfsetup/install/files/js/WCF.js @@ -2817,8 +2817,8 @@ WCF.Date.Time = Class.extend({ var $hours = Math.round((this._timestamp - $timestamp) / 3600); $element.text(WCF.Language.get('wcf.date.relative.hours', { hours: $hours })); } - // timestamp is less than a week ago - else if (this._timestamp < ($timestamp + 604800)) { + // timestamp is less than 6 days ago + else if (this._timestamp < ($timestamp + 518400)) { var $days = Math.round((this._timestamp - $timestamp) / 86400); // get day of week -- 2.20.1