Thursday, September 23, 2010

phpBB: date.timezone error at the top of every page on new install

If there is an error during phpBB installation:

[phpBB Debug] PHP Notice: in file /index.php on line 86: getdate(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/New_York' for 'EDT/-4.0/DST' instead
Fix:


// Set time zone
date_default_timezone_set('UTC');
At the top of common.php

Thread:
http://www.phpbb.com/community/viewtopic.php?f=46&t=1634115&start=15

continue with installation after adding the code to the common.php.