set day_diff to 0 if negative, related to #69
This commit is contained in:
parent
9a735e8eac
commit
72c38c2312
@ -11,7 +11,7 @@ define(["app/markup"], function(Mark) {
|
|||||||
day_diff = Math.floor(diff / 86400);
|
day_diff = Math.floor(diff / 86400);
|
||||||
|
|
||||||
if (isNaN(day_diff) || day_diff < 0) {
|
if (isNaN(day_diff) || day_diff < 0) {
|
||||||
return;
|
day_diff = diff = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
var i18n = function(msgid, n) {
|
var i18n = function(msgid, n) {
|
||||||
|
Loading…
Reference in New Issue
Block a user