DateTime::createFromFormat and DateTimeImmutable::createFromFormat ignore the timezone paremeter
Open
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
Assessment
This issue has not been assessed yet.