timezone theory question

Not for 'how-to' coding questions but PHP theory instead, this forum is here for those of us who wish to learn about design aspects of programming with PHP.

Moderator: General Moderators

Post Reply
dtd41
Forum Newbie
Posts: 1
Joined: Fri Mar 27, 2009 2:55 pm

timezone theory question

Post 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
jceresini
Forum Newbie
Posts: 8
Joined: Fri Mar 27, 2009 6:03 pm

Re: timezone theory question

Post 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
Post Reply