strftime() and strtotime() PHP warnings
Posted: Tue Apr 13, 2010 5:07 am
In index.php im using:http://php.net/date_default_timezone_set wrote: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.
Code: Select all
error_reporting( E_ALL );
$debug = false;
if ( version_compare( phpversion(), "5.1", ">=") ) {
date_default_timezone_set('UTC');
}