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
Shebang line (1st line on script) <?php tag):
Code: Select all
#!/usr/local/php5/bin/php -c /usr/local/php5/etc/php.ini
<?phpCode: 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