Results 1 to 7 of 7
-
07-31-2011, 04:45 PM #1Web Hosting Evangelist
- Join Date
- Jul 2011
- Location
- Who knows
- Posts
- 452
date(): It is not safe to rely on the system's timezone settings
Hello again,
recently i'm getting this error when i try to backup in my site.
Connecting to DB `idownlo`.
2011.08.01 00:36:34
An error occurred!
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 'Asia/Dubai' for 'GST/4.0/no DST' instead (2)
here is a image plz help me http://lulzimg.com/i24/b906ed.jpg
-
07-31-2011, 04:51 PM #2
follow the advice given.
Set date_default_timezoneTom Whiting, WHMCS Guru extraordinaire
Linux problems? WHMCS Problems? Give me a shout
Check out my WHMCS Addons
-
07-31-2011, 05:44 PM #3Aspiring Evangelist
- Join Date
- Aug 2002
- Location
- Milton Keynes
- Posts
- 354
I really don't think it could be more obvious than that...
-
07-31-2011, 06:24 PM #4Web Hosting Master
- Join Date
- Jun 2011
- Location
- Ontario, Canada
- Posts
- 554
Not many errors that tell you how to fix the error. Maybe that's why I've never heard of this before.
-
08-01-2011, 04:26 AM #5Web Hosting Evangelist
- Join Date
- Jul 2011
- Location
- Who knows
- Posts
- 452
hello and thank you for reply,
i went to the link i can see lots of instruction i'm not good with all these plz if you could let me know what i have to do..? is there any file on my server that i have to modify?
if this is not much to ask please kindly help me.
i check for solution on the net some of them saying edit the php.ini
Thank you
-
08-01-2011, 09:00 AM #6Disabled
- Join Date
- Apr 2011
- Posts
- 327
Yes, there is a file that you need to modify. It's the php.ini file. (You can see the path of it in your phpinfo() details).
Open the file with a texteditor (Nano, vi/vim) and search (in Nano: ctrl+w) for date_default_timezone and set it to the right timezone.
Example of a value for the setting:
America/Los_Angeles
-
08-01-2011, 03:34 PM #7Web Hosting Evangelist
- Join Date
- Jul 2011
- Location
- Who knows
- Posts
- 452
Similar Threads
-
help date and timezone
By imanewbie in forum Dedicated ServerReplies: 6Last Post: 07-02-2010, 03:56 AM -
PHP date.timezone Warning
By ServerOK in forum Hosting Security and TechnologyReplies: 6Last Post: 01-28-2010, 02:42 PM -
Getting the off-set hour between two timezone date
By latheesan in forum Programming DiscussionReplies: 1Last Post: 03-05-2008, 10:40 PM -
AwStats - timezone settings
By mxway in forum Web HostingReplies: 2Last Post: 03-08-2005, 02:36 PM -
why system date and php date are different
By e-view in forum Hosting Security and TechnologyReplies: 1Last Post: 10-08-2004, 03:28 AM