Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:89260 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 80480 invoked from network); 17 Nov 2015 10:40:31 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 17 Nov 2015 10:40:31 -0000 Authentication-Results: pb1.pair.com header.from=martin.keckeis1@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=martin.keckeis1@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.217.170 as permitted sender) X-PHP-List-Original-Sender: martin.keckeis1@gmail.com X-Host-Fingerprint: 209.85.217.170 mail-lb0-f170.google.com Received: from [209.85.217.170] ([209.85.217.170:34578] helo=mail-lb0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id FB/82-57591-D140B465 for ; Tue, 17 Nov 2015 05:40:30 -0500 Received: by lbbcs9 with SMTP id cs9so2811974lbb.1 for ; Tue, 17 Nov 2015 02:40:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=quiq4zl9E7vKXCvht1Qovoex1+CBF6FrYmtKKuNzoHM=; b=FaELHt/XTGf8uYapAMdObV9+QlIYkKcSfYN2S5UcW5yDp+OPU/eXsB5Zx9iWyujnpK G9fCurKyEWC0fw8CTl5j2j3fLeZpfu04wY5qiEZxBhDQ08jOrS6ui08qoSEQx3ISDSC/ W5ke/UQWx4jhasLaW0erpPetw9TRxJfsiIWeiweEfreUxvtONzBOPf5Gw/kLcPRKau6C d8UKcOtfjwKf1vppWGm+y7JUYs+6ViBt7pSHYlzcGw3085hHncnLpcsYvJJQpCdlKJO2 Kg6fRF5QJIA+2Gj7p7AS1kAZEWktGgHMpVPbeNFZYdAuV0UkopqFaV2PFuwLsvzrL2U+ cNIg== MIME-Version: 1.0 X-Received: by 10.112.17.70 with SMTP id m6mr17179928lbd.76.1447756826432; Tue, 17 Nov 2015 02:40:26 -0800 (PST) Received: by 10.25.21.27 with HTTP; Tue, 17 Nov 2015 02:40:26 -0800 (PST) Date: Tue, 17 Nov 2015 11:40:26 +0100 Message-ID: To: PHP internals Content-Type: multipart/alternative; boundary=001a11c3d3e25c60c30524ba27cf Subject: DateTime / Timezone funny behaviour, between different version From: martin.keckeis1@gmail.com (Martin Keckeis) --001a11c3d3e25c60c30524ba27cf Content-Type: text/plain; charset=UTF-8 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? --001a11c3d3e25c60c30524ba27cf--