Page 1 of 1

php warnings

PostPosted: Wed Feb 22, 2012 8:10 am
by Dataguru
Feel free to move this if it's not in the correct forum.

I was looking at an error log and several warnings appear to be happening recurrently. all related to time zones

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 'CST/-6.0/no DST' instead in /mysite/xataface/dataface-public-api.php on line 651

PHP Warning: strtotime(): 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 'CST/-6.0/no DST' instead in /mysite/xataface/Dataface/Record.php on line 2733, referer: http://mysite/index.php?-table=ProgStaff

PHP Warning: strtotime(): 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 'CST/-6.0/no DST' instead in /mysite/xataface/dataface-public-api.php on line 521, referer: http://mysite/index.php?-table=ProgStaff

PHP Warning: strftime(): 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 'CST/-6.0/no DST' instead in /mysite/xataface/dataface-public-api.php on line 522, referer: http://mysite/index.php?-table=ProgStaff

Re: php warnings

PostPosted: Wed Feb 22, 2012 12:22 pm
by shannah
You need to set the timezone in your php.ini file.

Re: php warnings

PostPosted: Thu Feb 23, 2012 9:02 am
by Dataguru
Thanks!