From 79f8c1157eac37a1cfba4dcc0d33cabd2fdbdaf4 Mon Sep 17 00:00:00 2001 From: Martin Zimmermann Date: Sun, 13 Oct 2013 12:58:48 +0200 Subject: [PATCH] show N days ago instead of previous week --- isso/js/app/utils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/isso/js/app/utils.js b/isso/js/app/utils.js index 20a8406..fb5c0af 100644 --- a/isso/js/app/utils.js +++ b/isso/js/app/utils.js @@ -32,7 +32,7 @@ define(["app/markup"], function(Mark) { diff < 60 && i18n("date-now") || diff < 3600 && i18n("date-minute", Math.floor(diff / 60)) || diff < 86400 && i18n("date-hour", Math.floor(diff / 3600))) || - day_diff === 1 && i18n("date-day", day_diff) || + day_diff < 7 && i18n("date-day", day_diff) || day_diff < 31 && i18n("date-week", Math.ceil(day_diff / 7)) || day_diff < 365 && i18n("date-month", Math.ceil(day_diff / 30)) || i18n("date-year", Math.ceil(day_diff / 365.25));