Hello together,

i just noticed that the date + timezone switching changed a lot last time?

tl;dr https://3v4l.org/pSplY

When taking a old datetime:
$date = \DateTime::createFromFormat('d.m.Y H:i:s', '01.01.1900 00:00:00',
new \DateTimeZone('Europe/Berlin'));

and switching between the given timezone and UTC, the date is sometimes
corrected with some minutes+seconds and sometimes not.

$date->setTimezone(new DateTimeZone('UTC'));
// 5.6.9
// output is 1899-12-31 23:06:32.000000

// 5.6.7
1899-12-31 23:00:00.000000


5.6.15 seems to be fine again?

Anybody else have such behaviours?

Reply via email to