Menu

ERROR 2: date(): It is not safe to rely

Help
Rob H
2010-04-17
2013-05-30
  • Rob H

    Rob H - 2010-04-17

    http://www.heape.net/familytree

    Can anyone give me pointers on how to resolve he following error?

    -Rob

    ERROR 2: 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 'America/Chicago' for 'CDT/-5.0/DST' instead
    0 Error occurred on in function date
    1 called from line 310 of file session.php in function require_once
    2 called from line 75 of file config.php in function require
    3 called from line 30 of file editgedcoms.php
    Warning: 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 'America/Chicago' for 'CDT/-5.0/DST' instead in /www/docs/heape-net/familytree/includes/authentication.php on line 294 Warning: 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 'America/Chicago' for 'CDT/-5.0/DST' instead in /www/docs/heape-net/familytree/includes/session.php on line 310

     
  • Greg Roach

    Greg Roach - 2010-04-17

    Your two choices are

    1) Edit PHP.INI to set a timezone
    2) Edit PHP.INI to ignore the warnings.

     
  • Stephen Arnold

    Stephen Arnold - 2010-04-17

    Rob
    What you don't divulge is that you have recently upgraded or installed PGV on a php5.3+ equipped system.
    php 5.3 requres that you define your server location, as noted in the error message, in your php.ini

    Google the error and you'll see hundreds of recent posts inquiring on the same, as well as some here. Just add the lines required to your php.ini to properly configure your server, or set the php.ini to ignore these kinds of error messages.
    -Stephen

     

Log in to post a comment.