DateTimeZone constructor does not accept time-zone offsets
Abierto
php5 incompatibility
- Lenguaje dominante
- C++
- Estrellas
- 18.7k
- Forks
- 3.1k
- Merge medio
- 1 h 47 min
- PR fusionados (30 d)
- 2
Descripción
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.
Guía de contribución
Evaluación
Este issue todavía no se ha evaluado.