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:
parent
19187b6205
commit
49e9103daf
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user