From 6a30daeb5958bec5e0a814bc2ce732d1e3c502e3 Mon Sep 17 00:00:00 2001 From: Nils Adermann Date: Mon, 24 Mar 2008 01:04:27 +0000 Subject: [PATCH] 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 --- phpBB/common.php | 1 + phpBB/style.php | 1 + 2 files changed, 2 insertions(+) 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);