Results 1 to 7 of 7
  1. #1
    Join Date
    Jul 2011
    Location
    Who knows
    Posts
    272

    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

  2. #2
    Join Date
    Sep 2002
    Location
    Among the corn
    Posts
    10,853
    follow the advice given.
    Set date_default_timezone
    Linux admin, support tech, php developer, WHMCS Guru for hire. PM for more info

  3. #3
    Join Date
    Aug 2002
    Location
    Milton Keynes
    Posts
    352
    I really don't think it could be more obvious than that...

  4. #4
    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. #5
    Join Date
    Jul 2011
    Location
    Who knows
    Posts
    272
    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. #6
    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. #7
    Join Date
    Jul 2011
    Location
    Who knows
    Posts
    272

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

Similar Threads

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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •