php warnings

A place to discuss development of the Xataface core.

php warnings

Postby Dataguru » Wed Feb 22, 2012 8:10 am

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
Dataguru
 
Posts: 27
Joined: Mon Feb 20, 2012 8:12 am

Re: php warnings

Postby shannah » Wed Feb 22, 2012 12:22 pm

You need to set the timezone in your php.ini file.
shannah
 
Posts: 4457
Joined: Wed Dec 31, 1969 5:00 pm

Re: php warnings

Postby Dataguru » Thu Feb 23, 2012 9:02 am

Thanks!
Dataguru
 
Posts: 27
Joined: Mon Feb 20, 2012 8:12 am


Return to Xataface Developers

Who is online

Users browsing this forum: No registered users and 1 guest

cron
Powered by Dataface
© 2005-2007 Steve Hannah All rights reserved