|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2019-02-11 07:33 UTC] requinix@php.net
-Status: Open
+Status: Feedback
[2019-02-11 07:33 UTC] requinix@php.net
[2019-02-11 08:40 UTC] dominik dot zogg at gmail dot com
[2019-02-11 12:42 UTC] cmb@php.net
-Status: Feedback
+Status: Not a bug
-Assigned To:
+Assigned To: cmb
[2019-02-11 12:42 UTC] cmb@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Oct 28 06:00:01 2025 UTC |
Description: ------------ Create a new DateTime instance with a date, for example 2018-12-01 it get created with GMT, even if the php.ini uses Europe/Zurich Default timezone => Europe/Zurich date.timezone => Europe/Zurich => Europe/Zurich Test script: --------------- <?php $dateTime = new DateTime('2018-12-01'); echo $dateTime->format(\DateTime::ISO8601); // expected: 2018-12-01T00:00:00+0100 with php.ini (Europe/Zurich) // what happens: 2018-12-01T00:00:00+0000