make sure relativeTime doesn't display negative values

v1.18.x
Baris Soner Usakli 11 years ago
parent d068139d81
commit 09efb83ef3

@ -56,6 +56,10 @@
var now = +new Date(),
difference = now - Math.floor(parseFloat(timestamp));
if(difference < 0) {
difference = 0;
}
difference = Math.floor(difference / 1000);
if (difference < 60) {

Loading…
Cancel
Save