[php-maint] Bug#571762: Bug#571762: [php5] please get rid of "Warning: date() [function.date]: It is not safe to rely on the system's timezone settings."
mmarques at unl.edu.ar
Mon Mar 1 15:45:23 UTC 2010
FYI, I'm unable to eliminate this annoying message from the PHP CLI
(apache stopped sending messages the moment I configured date.timezone =
'America/Buenos_Aires'), but using this same configuration on
/etc/php5/cli/php.ini doesn't stop PHP from sending warnings when
executed from the command line.
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/Buenos_Aires'
for 'ART/-3.0/no DST' instead in /usr/share/php/Date/TimeZone.php on
Something is wrong here.
More information about the pkg-php-maint