开发者

PHP timezone. Where is my city?

Aparently, PHP doesn't recognize the State of Utah because I can't find the timezone for that area. Can someone please tell me what to use?" My 开发者_C百科server is in Salt Lake City.


Mountain Time UTC-7 UTC-6 MST MDT America/Denver


Mountain: UTC-7/-6 according to Wikipedia.

But it sounds like you have a different problem. At what point is PHP not recognizing the location, and what error messages come up?


According to the Wikipedia page on the Zoneinfo database (aka the Olson database):

Usually the most populous city in a region is chosen to represent the entire time zone, although other cities may be selected if they are more widely known or result in a less ambiguous name.

As jspcal points out, the Zoneinfo name for Mountain Time is America/Denver.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜