facebook / facebook/hhvm

Zend incompatibility: DateTime timezone incorrectly set

Đang mở
#1,777 7 bình luận 0 reaction 0 người được giao Xem trên GitHub
mid-pri php5 incompatibility
Ngôn ngữ chính
C++
Star
18.7k
Fork
3.1k
Merge trung bình
1 giờ 47 phút
Pull request đã merge (30 ngày)
2

Mô tả

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

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.