1
0
mirror of https://github.com/vichan-devel/vichan.git synced 2024-11-24 07:30:10 +01:00

Fixed Javascript bug with lengthy ban times (several years)

This commit is contained in:
Savetheinternet 2011-03-27 22:40:29 +11:00
parent 19187b6205
commit 49e9103daf

View File

@ -248,7 +248,7 @@
} else if (diff < 60*60*24*365) {
return (num = Math.round(diff/(60*60*24*7))) + " week" + (num == 1 ? "" : "s");
} else {
return (num = Math.round(diff/(60*60*365))) + " year" + (num == 1 ? "" : "s");
return (num = Math.round(diff/(60*60*24*365))) + " year" + (num == 1 ? "" : "s");
}
}
var countdown = document.getElementById("countdown");