Zend incompatibility: DateTime timezone incorrectly set
Abierto
mid-pri
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 timezone parameter of the `DateTime` constructor should only be used as a hint. Currently in HHVM it is stored as the actual timezone.
``` php
$tz = new DateTimeZone('Antarctica/South_Pole');
$time = new DateTime('@1301574225', $tz);
var_dump($time->getTimeZone()->getName());
```
Zend:
`string(6) "+00:00"`
HHVM:
`string(21) "Antarctica/South_Pole"`
Guía de contribución
Evaluación
Este issue todavía no se ha evaluado.