|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2013-09-26 11:33 UTC] patrik at votocek dot cz
-Status: Open
+Status: Closed
[2013-09-26 11:33 UTC] patrik at votocek dot cz
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Nov 03 20:00:02 2025 UTC |
Description: ------------ DateTime::createFromFormat('U', $time); ignore current timezone. Test script: --------------- <?php $time = time(); var_dump(date('r', $time)); var_dump(\DateTime::createFromFormat('U', $time)->format('r')); Expected result: ---------------- string(31) "Thu, 26 Sep 2013 13:17:37 +0200" string(31) "Thu, 26 Sep 2013 13:17:37 +0200" Actual result: -------------- string(31) "Thu, 26 Sep 2013 13:17:37 +0200" string(31) "Thu, 26 Sep 2013 11:17:37 +0000"