From 272e991a93b185ead3feff4df8ebe1636561763b Mon Sep 17 00:00:00 2001
From: Savetheinternet <savetheinternet@n0v4.com>
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");