set day_diff to 0 if negative, related to #69

This commit is contained in:
Martin Zimmermann 2014-03-03 23:45:47 +01:00
parent 9a735e8eac
commit 72c38c2312

View File

@ -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) {