Browse Source

Fixed Javascript bug with lengthy ban times (several years)

pull/40/head
Savetheinternet 13 years ago
parent
commit
49e9103daf
  1. 2
      inc/functions.php

2
inc/functions.php

@ -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…
Cancel
Save