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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.