Page 1 of 1

date.timezone set in ini not recognized

Posted: Wed Feb 10, 2010 12:39 pm
by rbtitotito
I am setting the date.timezone to "America/Chicago" in the ini file, and phpinfo seems to be picking that up:

Snippet from phpinfo() (in same file)

Code: Select all

 
....
display_startup_errors => Off => Off
....
date
 
date/time support => enabled
"Olson" Timezone Database Version => 2009.10
Timezone Database => internal
Default timezone => America/Chicago
 
Directive => Local Value => Master Value
date.default_latitude => 31.7667 => 31.7667
date.default_longitude => 35.2333 => 35.2333
date.sunrise_zenith => 90.583333 => 90.583333
date.sunset_zenith => 90.583333 => 90.583333
date.timezone => America/Chicago => America/Chicago
 
I'm running this as an executable, but I get this error in the log file when run as web script as well.

Shebang line (1st line on script) <?php tag):

Code: Select all

#!/usr/local/php5/bin/php -c /usr/local/php5/etc/php.ini
<?php
I also have display_start_up off, but I keep getting these messages both before and after startup:

Code: Select all

PHP Warning:  PHP Startup: 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 Unknown on line 0
 

Code: Select all

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 /Users/rbrown/Documents/workspace/DirectBill/invoice/Statements.class.php on line 1477
 
Any ideas as to why this is happening? Let me know if more info is needed.