strftime() and strtotime() PHP warnings

If you've made a patch to quick fix a bug or to add a new feature not yet in the main tree then post it here so others can try it out.
Post Reply
MarcoP
Posts: 46
Joined: Wed Mar 24, 2010 1:46 pm

strftime() and strtotime() PHP warnings

Post 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');
}
MarcoP
Posts: 46
Joined: Wed Mar 24, 2010 1:46 pm

Post by MarcoP »

Post Reply