Just installed 2.2. Checking my server logs I'm seeing alot of date/timezone related errors
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/New_York' for 'EST/-5.0/no DST' instead in /srv/www/htdocs/xxxxxx/includes/functions.inc.php on line 1945. My logs are flooded with these errors. I'm running Linux kernel 2.6.31 Apache 2.2 and php 5.3.0 Any one else experienced these?
Page 1 of 1
Php Errors-Date Related
#2
Posted 05 February 2010 - 01:38 PM
After further research it seems that PHP 5.3 changed some of its functions- You must set it manually
You can set a default time zone for your server from the configuration file (php.ini) at the line:
[Date]
; Defines the default timezone used by the date functions
date.timezone = America/New_York
After I set this manually everything is working fine, so this topic can be considered closed.
You can set a default time zone for your server from the configuration file (php.ini) at the line:
[Date]
; Defines the default timezone used by the date functions
date.timezone = America/New_York
After I set this manually everything is working fine, so this topic can be considered closed.
Page 1 of 1

Sign In
Register
Help


MultiQuote