Results 1 to 4 of 4
  1. #1
    Join Date
    May 2007
    Posts
    85

    Question php Time problem

    Hi guys,

    I am getting this error when I am checking phpinfo.php

    Warning: phpinfo() [function.phpinfo]: 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 'Europe/Moscow' for 'MSD/4.0/DST' instead in /home/excl/public_html/tonebooks.com/phpinfo.php on line 1

    Actually I've already specified the region, but it doesn't help much.


    Thanks

  2. #2
    Join Date
    Nov 2009
    Location
    Auckland
    Posts
    461
    Actually it's just a warning, not an error.
    Can you try to adjust the logging part from php.ini? Probably change it to E_ERROR.

  3. #3
    Quote Originally Posted by seosuperhero View Post
    Hi guys,

    Actually I've already specified the region, but it doesn't help much.
    May be you edit wrong php.ini. You can see correct path in phpinfo.

    Set something like
    date.timezone="America/Chicago"

    And do not forget restart Apache.

  4. #4
    Join Date
    Jun 2011
    Location
    America/Mexico_City
    Posts
    98
    Hello. Also you can assign it with PHP:

    Code:
    <?php
    date_default_timezone_set("America/Chicago");
    ?>
    ⓈⓊⓅⒺⓇⓀⒶⓁⒾⒹ

Similar Threads

  1. Full time/Part time Senior PHP Developer required in India.
    By softmaster in forum Employment / Job Offers
    Replies: 2
    Last Post: 05-22-2009, 01:24 AM
  2. Daily, time to time cpu load problem
    By McClickson in forum Hosting Security and Technology
    Replies: 12
    Last Post: 08-11-2007, 11:19 AM
  3. PHP EST time - Server time CST time
    By chightech in forum Programming Discussion
    Replies: 2
    Last Post: 12-14-2004, 03:10 PM
  4. Annoying Problem: PHP Time Zone Fluctuations
    By anile8 in forum Hosting Security and Technology
    Replies: 3
    Last Post: 06-10-2003, 03:57 PM
  5. Time Zone Problem in PHP?
    By ghost in forum Programming Discussion
    Replies: 9
    Last Post: 05-17-2003, 07:03 PM

Posting Permissions

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