Short time should only be displayed if it's less than 6 days ago
authorAlexander Ebert <ebert@woltlab.com>
Tue, 11 Jun 2013 15:12:48 +0000 (17:12 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Tue, 11 Jun 2013 15:12:48 +0000 (17:12 +0200)
wcfsetup/install/files/js/WCF.js

index 56fe5f9cd3c9a240b106c388fb200a923253488b..25c912838eed583e6940214125cbc5f3f9a5bd18 100755 (executable)
@@ -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