php.ini date.timezone usefulness?

Posted by Buttle Butkus on Server Fault See other posts from Server Fault or by Buttle Butkus
Published on 2012-06-10T21:21:00Z Indexed on 2012/06/10 22:42 UTC
Read the original article Hit count: 290

Filed under:
|
|
|

I'm not sure if this is a question for serverfault or stackoverflow but it seems like it has a lot to do with server config.

We have a server in chicago and the server's clock is on chicago time. But since the business is located in California, it would seem to make sense to use pacific time.

What happens when server time is Chicago, and php.ini directive date.timezone is set to "America/Los_Angeles"? How will that affect logs written to mysql, error logs, etc?

I've looked at the Apache error log and, as I expected, the php directive does not affect it. Times are all servertime.

Thanks.

© Server Fault or respective owner

Related posts about php

Related posts about centos