facebook / facebook/hhvm

DateTime::createFromFormat and DateTimeImmutable::createFromFormat ignore the timezone paremeter

Open
#7,237 0 comments 1 reaction 0 assignees View on GitHub
php5 incompatibility php7 incompatibility probably easy
Dominant language
C++
Stars
18.7k
Forks
3.1k
Avg merge
1h 47m
Merged PRs (30d)
2

Description

### HHVM Version

All version
### Standalone code, or other way to reproduce the problem

https://3v4l.org/dRlSQ
### Expected result

Both DateTime and DateTimeInterface createFromFormat method should retain the original Date Timezone information like with the Zend Engine
### Actual result

The timezone info is lost and the object uses the default(?) timezone of the environment.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.