DateTimeZone constructor does not accept time-zone offsets
未关闭
php5 incompatibility
- 主要语言
- C++
- 星标
- 18.7k
- 派生
- 3.1k
- 平均合并
- 1 小时 47 分钟
- 30 天内合并 PR
- 2
描述
The following code:
```
new DateTimeZone('+01:00');
```
Throws the following exception:
> DateTimeZone::__construct(): Unknown or bad timezone (+01:00)
Same error for `'Z'`, which is the ISO 8601 representation for UTC.
There was a [similar PHP bug](https://bugs.php.net/bug.php?id=45528) that was fixed in PHP 5.5.10, it would be nice to fix HHVM as well.
贡献指南
评估
这个 Issue 还没有评估数据。