Nathan54AB Posted January 10, 2011 Share Posted January 10, 2011 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. Quote Link to comment Share on other sites More sharing options...
Pikachu2000 Posted January 10, 2011 Share Posted January 10, 2011 Did you restart Apache? Quote Link to comment Share on other sites More sharing options...
Nathan54AB Posted January 10, 2011 Author Share Posted January 10, 2011 Nope, but now that I did try it, it works now. *facepalm* Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.