my hosting comapany move my site from serverA to serverB, after that, everytime when I post a node, I got a long message
:warning: date() [function.date]: 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 'America/Chicago' for 'CST/-6.0/no DST' instead in /home/xxx/public_html/xxx.com/sites/all/modules/token/token_node.inc on line 67.
I have changed the setting on the page of 'http://www.xxx.com/admin/settings/date-time' . From the cpanel I can see the php version is 5.3.1. the problem stay the same.
I have no idea where this came from and where I should fix. Can anybody tell me where should fix the system ?
Thanks
Comments
Comment #1
Dave ReidProblem is token module calling the date() function without having date_default_timezone_set() which causes a PHP warning.
Comment #2
freelylw CreditAttribution: freelylw commentedI have updated to the latest dev version. the problem stay the same. what should I do ?
Comment #3
freelylw CreditAttribution: freelylw commentedanybody here for the support ?
I got the message from my hosting :
You are *required* to use the date.timezone setting or the date_default_timezone_set() function.
http://php.net/date.timezone
http://php.net/date_default_timezone_set
Newest version of PHP require to use date.timezone and that's something that you have to do in your script.
Comment #4
rickyd1 CreditAttribution: rickyd1 commentedIs this issue being addressed? I am getting the same message.
Comment #5
Dave ReidThis will be solved with #307520: Date formatting function