aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNils Adermann <naderman@naderman.de>2008-03-24 01:04:27 +0000
committerNils Adermann <naderman@naderman.de>2008-03-24 01:04:27 +0000
commit6a30daeb5958bec5e0a814bc2ce732d1e3c502e3 (patch)
treed5f3e96cd869c8238dc8d79dff548899b14cd8e3
parent5417ec5c4d2e1b7fd1a6b9935a294e7f2af9b793 (diff)
downloadforums-6a30daeb5958bec5e0a814bc2ce732d1e3c502e3.tar
forums-6a30daeb5958bec5e0a814bc2ce732d1e3c502e3.tar.gz
forums-6a30daeb5958bec5e0a814bc2ce732d1e3c502e3.tar.bz2
forums-6a30daeb5958bec5e0a814bc2ce732d1e3c502e3.tar.xz
forums-6a30daeb5958bec5e0a814bc2ce732d1e3c502e3.zip
not sure what the implications of this quick fix are, especially when upgrading from earlier versions we either have to use a different timezone depending on the server or fix timestamps on update, though shouldn't they be gmt already?
git-svn-id: file:///svn/phpbb/trunk@8467 89ea8834-ac86-4346-8a33-228a782c2dd0
-rw-r--r--phpBB/common.php1
-rw-r--r--phpBB/style.php1
2 files changed, 2 insertions, 0 deletions
diff --git a/phpBB/common.php b/phpBB/common.php
index 5f4216d1d7..02b18d6aa1 100644
--- a/phpBB/common.php
+++ b/phpBB/common.php
@@ -21,6 +21,7 @@ $starttime = $starttime[1] + $starttime[0];
// Report all errors, except notices
error_reporting(E_ALL ^ E_NOTICE);
+date_default_timezone_set('UTC');
/*
* Remove variables created by register_globals from the global scope
diff --git a/phpBB/style.php b/phpBB/style.php
index 3e923b8f53..2bc6930a5c 100644
--- a/phpBB/style.php
+++ b/phpBB/style.php
@@ -17,6 +17,7 @@ $phpEx = substr(strrchr(__FILE__, '.'), 1);
// Report all errors, except notices
error_reporting(E_ALL ^ E_NOTICE);
+date_default_timezone_set('UTC');
require($phpbb_root_path . 'config.' . $phpEx);