Page 1 of 1

strftime() and strtotime() PHP warnings

Posted: Tue Apr 13, 2010 5:07 am
by MarcoP
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.
In index.php im using:

Code: Select all

error_reporting( E_ALL );
$debug = false;

if ( version_compare( phpversion(), "5.1", ">=") ) {
	date_default_timezone_set('UTC');
}

Posted: Wed Apr 14, 2010 7:27 am
by MarcoP