summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2011-03-01 12:24:48 -0600
committerLukas Fleischer <archlinux@cryptocrack.de>2011-03-04 10:29:17 +0100
commitd4b1ca7cf19c1a6b902b3c7810047156328d8c72 (patch)
treebb75cd97fb87c7b4203ad434b239e48ac688596e
parentcdc01130cf03ceac98626e9bedc369da3f0fd2c7 (diff)
downloadaurweb-d4b1ca7cf19c1a6b902b3c7810047156328d8c72.tar.xz
Set a default timezone
With our use of strtotime() in stats.inc, we are "required" to do so or at least the emitted warning tells us it is a good idea. Signed-off-by: Dan McGee <dan@archlinux.org> Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
-rw-r--r--web/lib/aur.inc2
1 files changed, 2 insertions, 0 deletions
diff --git a/web/lib/aur.inc b/web/lib/aur.inc
index e7aaa1f..430666c 100644
--- a/web/lib/aur.inc
+++ b/web/lib/aur.inc
@@ -5,6 +5,8 @@ header('Cache-Control: no-cache, must-revalidate');
header('Expires: Tue, 11 Oct 1988 22:00:00 GMT'); // quite a special day
header('Pragma: no-cache');
+date_default_timezone_set('UTC');
+
include_once('translator.inc');
set_lang();