开发者

Rails time zones

开发者 https://www.devze.com 2022-12-24 23:12 出处:网络
I\'m calling开发者_运维技巧 an external web service API that returns a timezone as listed in the Olson timezones database (e.g. \"America/New_York\"). However some of the values the API returned are \

I'm calling开发者_运维技巧 an external web service API that returns a timezone as listed in the Olson timezones database (e.g. "America/New_York"). However some of the values the API returned are "US/Pacific", "US/Eastern" and apparently don't match any of the Olson timezones in Rails 2.3.2. Can anyone shed some light on this? Thanks in advance for your help.


I don't know why they're being returned by the particular API you're using, but those entries do exist in the PHP timezone implementation (and maybe others), with the warning "Please do not use any of the timezones listed here (besides UTC), they only exist for backward compatible reasons."

I guess Rails uses a stricter implementation.

0

精彩评论

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

关注公众号