PHP5.3.5: error message for date()

From: Date: Sat, 05 Mar 2011 07:29:40 +0000
Subject: PHP5.3.5: error message for date()
Groups: php.general 
Request: Send a blank email to php-general+get-311684@lists.php.net to get a copy of this message
After a long battle to get my system back on air after a hard disk crash, I got PHP 5.3.5 running under Apache 2.2.3. I now get a diagnostic every time I call date(), complaining about a missing parameter. The manual states that the second parameter is optional, and even phpinfo doesn't know about this new requirement, as it contains the same diagnostic: "Warning: phpinfo(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Australia/Melbourne' for '11.0/DST' instead in D:\Websites\index.php on line 1 Warning: phpinfo(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Australia/Melbourne' for '11.0/DST' instead in D:\Websites\index.php on line 1 ". Is this a bug, or a new requirement we will have to get used to? Roger Riordan AM

« previous php.general (#311684) next »