facebook / facebook/hhvm

Zend incompatibility: DateTime timezone incorrectly set

Abierto
#1,777 7 comentarios 0 reacciones 0 asignados Ver en GitHub
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

Abrir la guía de contribución

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.