PHP5.3.5: error message for date()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux