futuresight / futurebb

The forum system by FutureSight Technologies. A live sample can be seen at http://futuresight.org/forums
http://futurebb.futuresight.org
2 stars 2 forks source link

"It is not safe to rely on the system's timezone settings" in Profile - Basics #145

Closed iggyvolz closed 8 years ago

iggyvolz commented 8 years ago

Note - this error will go away in PHP7, because it's the stupidest error of all time. Can be fixed with date_default_timezone_set("UTC"), which will become the default in PHP7.

Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct(): 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 the timezone 'UTC' for now, but please set date.timezone to select your timezone.' in /app_resources/includes/functions.php:199 Stack trace: #0 /app_resources/includes/functions.php(199): DateTime->__construct('@1446937431') #1 /app_resources/pages/profile.php(159): user_date('1446937431') #2 /dispatcher.php(129): include('') #3 {main} thrown in /app_resources/includes/functions.php on line 199