From 72c38c2312c17231b6f7de5a3a1f65c12f7fe6a6 Mon Sep 17 00:00:00 2001 From: Martin Zimmermann Date: Mon, 3 Mar 2014 23:45:47 +0100 Subject: [PATCH] set day_diff to 0 if negative, related to #69 --- 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 81e012d..dfe737c 100644 --- a/isso/js/app/utils.js +++ b/isso/js/app/utils.js @@ -11,7 +11,7 @@ define(["app/markup"], function(Mark) { day_diff = Math.floor(diff / 86400); if (isNaN(day_diff) || day_diff < 0) { - return; + day_diff = diff = 0; } var i18n = function(msgid, n) {