Jump to content

Timezone configuration driving me nuts!


Recommended Posts

I'm playing around with Joomla and phpBB3 installed on my XAMPP server and everywhere I go I'm getting this errors like this:

 

Warning: date() [function.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 'America/Los_Angeles' for '-8.0/no DST' instead in C:\xampp\htdocs\Joomla\libraries\joomla\utilities\date.php on line 198

 

This is one example, but they're all pretty much the same. Others just point to different files and line numbers.

 

I did some research on this error, and from what I've been finding it has to do with the date.timezone setting in my php.ini file. So I added the following like in my php.ini file so the part under [Date] looks like this:

 

[Date]
; Defines the default timezone used by the date functions
; http://php.net/date.timezone
date.timezone = "America/Los_Angeles"

 

However, this hasn't changed anything. I still get the same errors everywhere. Tell me, how do I fix this? I suppose I could go into each PHP file and manually set the timezone in the problem lines using some function, but I really don't want to do that. I'd like to just change one setting so it automatically fixes every occurrence of this error at once.

Link to comment
https://forums.phpfreaks.com/topic/223930-timezone-configuration-driving-me-nuts/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.