New PHP release a date() function issue
Posted: Wed Apr 20, 2011 8:48 am
Hi all,
I've noticed the recent update to PHP has introduced an issue with the date() function. I'm now getting timezone warnings in the logs when using the date() function.
I've read somewhere online that you need to set the date.timezone directive the php.ini.
Now since the update which was yesterday, I haven't rebooted the server. So is the date.timezone directive already set and it is a case of rebooting, or do I have to set the value myself, and if so can it be set in a global php.ini file (server wide) or will it have to be set on per domain basis?
I've noticed the recent update to PHP has introduced an issue with the date() function. I'm now getting timezone warnings in the logs when using the date() function.
Code: Select all
PHP Warning: date() [<a href='function.date'>function.date</a>]: 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 'Europe/London' for 'BST/1.0/DST' instead in
Now since the update which was yesterday, I haven't rebooted the server. So is the date.timezone directive already set and it is a case of rebooting, or do I have to set the value myself, and if so can it be set in a global php.ini file (server wide) or will it have to be set on per domain basis?