Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
DateTime::createFromFormat and DateTimeImmutable::createFromFormat ignore the timezone paremeter #7237
Standalone code, or other way to reproduce the problem
Both DateTime and DateTimeInterface createFromFormat method should retain the original Date Timezone information like with the Zend Engine
The timezone info is lost and the object uses the default(?) timezone of the environment.