facebook / facebook/hhvm

Zend incompatibility: DateTime timezone incorrectly set

オープン
#1,777 コメント 7 件 リアクション 0 件 担当者 0 名 GitHub で見る
mid-pri php5 incompatibility
主要言語
C++
スター
18.7k
フォーク
3.1k
平均マージ
1時間 47分
マージ済み PR(30日)
2

説明

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"`

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。