半小时时区缺失 [英] Half hour time zones missing

查看:250
本文介绍了半小时时区缺失的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在PHP中,我使用 DateTimeZone :: listIdentifiers()来获取用户选择的时区列表。这似乎工作正常,但从这个列表中缺少的是半小时时区。特别是纽芬兰,伊朗和印度的

。任何人知道如何让他们回来,为什么他们失踪? PHP文档显示为不要使用这些时区,但它们是仍然在世界上使用,并且似乎没有在这里的任何地方有效列表中列出。



任何想法?

解决方案

例如:



纽芬兰时区标识是 America / St_Johns



[1] http://php.net/manual/en/timezones.america.php



[2] https:/ /en.wikipedia.org/wiki/List_of_tz_database_time_zones


In PHP I am using DateTimeZone::listIdentifiers() to get a list of time zones for user selection. This seems to be working fine, but missing from this list are the half hour time zones.

Notably Newfoundland, Iran and India. Anyone know how to get them back, why they are missing? The PHP docs show them as "don't use these timezones" but they are still used in the world and they don't seem to be listed in the "valid" list anywhere here.

Any ideas?

解决方案

For example:

Newfoundland time zone identifier is America/St_Johns

[1] http://php.net/manual/en/timezones.america.php

[2] https://en.wikipedia.org/wiki/List_of_tz_database_time_zones

这篇关于半小时时区缺失的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆