Fatal Timezone Error Please Help
Hey all,
I installed Mysidia Adoptables last year and got it working well but went away for other projects in the past 8 months and haven't touched it. I decided to pick it back up and when I went to visit the website it gave me this error. Code:
Warning: Unknown: 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/Chicago' for 'CDT/-5.0/DST' instead in Unknown on line 0 |
I think your hosting provider made some changes in the last eight months - sounds to me like they updated their PHP version, but failed to set a timezone in their configuration.
This can be fixed by setting a timezone yourself in your files, using date_default_timezone_set() - you can browse through timezones here. An example would be PHP Code:
|
Oh okay thank you so much ^_^ I'll see if that works.
|
late to the show but you can actually insert that code like this:
date_default_timezone_set("America/New_York"); $time = new DateTime(); $this->lastactivity = $time->getTimestamp(); $this->isloggedin = UserCreator::logincheck(); Didn't expect it to work! |
and if it asks for it again in class_members I think it is, insert it again for line 35 I believe!
|
All times are GMT -5. The time now is 11:51 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.