From 49e9103daffa0a7289b0e342040fed77eda63770 Mon Sep 17 00:00:00 2001 From: Savetheinternet Date: Sun, 27 Mar 2011 22:40:29 +1100 Subject: [PATCH] Fixed Javascript bug with lengthy ban times (several years) --- inc/functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inc/functions.php b/inc/functions.php index aa9db4a7..c8877b59 100644 --- a/inc/functions.php +++ b/inc/functions.php @@ -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");