MyBB Community Forums

Full Version: PHP problems
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I keep getting these errors whenever somebody posts on my forums

The following warnings occurred:
Warning [2] date(): 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 'UTC' for 'UTC/0.0/no DST' instead - Line: 1904 - File: inc/functions.php PHP 5.3.10 (Linux)
File Line Function
[PHP] errorHandler->error
/inc/functions.php 1904 date
/inc/functions.php 2015 update_stats
/inc/datahandlers/post.php 1015 update_forum_counters
/newreply.php 497 PostDataHandler->insert_post

This is a definate php error because i have not edited any files and it is in the php error table style.

How can i fix this problem could you give me some steps/pointers on how to solve this.
your server was just upgraded to 5.3.10. edit /inc/init.php and change
if(function_exists('date_default_timezone_set') && !ini_get('date.timezone'))
{
	date_default_timezone_set('GMT');
}

to

//if(function_exists('date_default_timezone_set') && !ini_get('date.timezone'))
{
	date_default_timezone_set('GMT');
}

basically comment out the if statement. that should force the use of the timezone set function