Zend incompatibility: DateTime timezone incorrectly set
オープン
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 はまだ評価されていません。