Page 1 of 1

timezone theory question

Posted: Fri Mar 27, 2009 3:11 pm
by dtd41
I just updated to php5 for a server running an ecommerce application getting the error:

strftime() [function.strftime]: It is not safe to rely on the system's timezone settings....

My question is not how to fix it, that's easy. My question is why should an application language make the assumption that the server time can not be corrrect? I think having the option is valuable in the we can know that the server is in one zone and the we want the displayed time to be in another, but that and sever other scenarios that come to mind does not address my question.

php5 does indeed (IMO) do the 'right' thing but with the logging of many many errors depending on the application and error settings. Reading this I guess I aggressively stated my opinion, but I do not mean to start a flame ward. I really am interested in the thought process/analysis leading to this change.

Thanks for any thoughts

Re: timezone theory question

Posted: Fri Mar 27, 2009 6:53 pm
by jceresini
Here is a helpful explanation of the error you are seeing:

http://answers.google.com/answers/threa ... 39376.html


Joe Ceresini
Network Engineer
jceresini@hostmysite.com
HostMySite.com