DateTime / Timezone funny behaviour, between different version

From: Date: Tue, 17 Nov 2015 10:40:26 +0000
Subject: DateTime / Timezone funny behaviour, between different version
Groups: php.internals 
Request: Send a blank email to internals+get-89260@lists.php.net to get a copy of this message
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?

« previous php.internals (#89260) next »