[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."
Philipp Kempgen
philipp.kempgen at amooma.de
Sat Feb 27 21:59:55 UTC 2010
IMHO if date.timezone is undefined PHP should quietly assume that
it was intentionally left undefined because I *want* PHP to "query
the host operating system (if supported and allowed by the OS)"
or else fall back to UTC.
What I usually do is:
date_default_timezone_set( @date_default_timezone_get() );
Philipp Kempgen
--
More information about the pkg-php-maint
mailing list