Warning: date(): It is not safe to rely on the system's timezone settings...

Article ID: 329

Last updated: 06 Apr, 2011

Error message/code:

Warning: date(): It is not safe to rely on the system's timezone settings...

Description:

Since PHP 5.1.0 (when the date/time functions were rewritten), every call to a date/time function will generate a E_NOTICE if the timezone isn't valid, and/or a E_WARNING message if using the system settings or the TZ environment variable.