mirror of
https://github.com/vichan-devel/vichan.git
synced 2025-02-17 19:29:28 +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) {
|
} else if (diff < 60*60*24*365) {
|
||||||
return (num = Math.round(diff/(60*60*24*7))) + " week" + (num == 1 ? "" : "s");
|
return (num = Math.round(diff/(60*60*24*7))) + " week" + (num == 1 ? "" : "s");
|
||||||
} else {
|
} 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");
|
var countdown = document.getElementById("countdown");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user