hosted by liquidweb


Go Back   Web Hosting Talk : Web Hosting Main Forums : VPS Hosting : date(): It is not safe to rely on the system's timezone settings
Reply

Forum Jump

date(): It is not safe to rely on the system's timezone settings

Reply Post New Thread In VPS Hosting Subscription
 
Send news tip View All Posts Thread Tools Search this Thread Display Modes
  #1  
Old 07-31-2011, 04:45 PM
anthonyinit anthonyinit is offline
Web Hosting Guru
 
Join Date: Jul 2011
Location: Who knows
Posts: 255
Unhappy

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



Sponsored Links
  #2  
Old 07-31-2011, 04:51 PM
twhiting9275 twhiting9275 is offline
Just me
 
Join Date: Sep 2002
Location: Among the corn
Posts: 10,473
follow the advice given.
Set date_default_timezone

  #3  
Old 07-31-2011, 05:44 PM
drspliff drspliff is offline
Aspiring Evangelist
 
Join Date: Aug 2002
Location: Milton Keynes
Posts: 352
I really don't think it could be more obvious than that...

Sponsored Links
  #4  
Old 07-31-2011, 06:24 PM
Sinoco Sinoco is offline
Web 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.

  #5  
Old 08-01-2011, 04:26 AM
anthonyinit anthonyinit is offline
Web Hosting Guru
 
Join Date: Jul 2011
Location: Who knows
Posts: 255
Quote:
Originally Posted by linux-tech View Post
follow the advice given.
Set date_default_timezone
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

  #6  
Old 08-01-2011, 09:00 AM
warg warg is offline
Disabled
 
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

  #7  
Old 08-01-2011, 03:34 PM
anthonyinit anthonyinit is offline
Web Hosting Guru
 
Join Date: Jul 2011
Location: Who knows
Posts: 255
Talking

Quote:
Originally Posted by warg View Post
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
Hello Sir,
You really save my life.. this fix my error.. thank you so much for your help..

Reply

Similar Threads
Thread Thread Starter Forum Replies Last Post
help date and timezone imanewbie Dedicated Server 6 07-02-2010 03:56 AM
PHP date.timezone Warning flashwebhost Hosting Security and Technology 6 01-28-2010 02:42 PM
Getting the off-set hour between two timezone date latheesan Programming Discussion 1 03-05-2008 10:40 PM
AwStats - timezone settings mxway Web Hosting 2 03-08-2005 02:36 PM
why system date and php date are different e-view Hosting Security and Technology 1 10-08-2004 03:28 AM

Related posts from TheWhir.com
Title Type Date Posted
Dell to Shut Down Consumer-Focused Cloud Storage Service DellData Safe Web Hosting News 2014-06-13 11:58:00
Malware Distributors Using Major US Cloud Computing Services: Report Web Hosting News 2014-01-16 16:18:15
Carbonite Launches Enhanced Server Backup for Small Businesses Web Hosting News 2013-07-26 16:31:57
Aussie Web Host DWHS Rebrands to WebHost.pro, Adds Plans and Features Web Hosting News 2013-02-14 14:41:25
Email Reduces Need for File Storage Systems, Mimecast Study Finds Web Hosting News 2012-11-14 16:18:36


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes
Postbit Selector

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump
Login:
Log in with your username and password
Username:
Password:



Forgot Password?
Advertisement:
Web Hosting News:



 

X

Welcome to WebHostingTalk.com

Create your username to jump into the discussion!

WebHostingTalk.com is the largest, most influentual web hosting community on the Internet. Join us by filling in the form below.


(4 digit year)

Already a member?