|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2010-01-19 13:05 UTC] yoarvi at gmail dot com
[2010-03-19 00:55 UTC] Eric at Deplagne dot name
[2010-03-19 00:57 UTC] felipe@php.net
-Status: Open
+Status: Assigned
-Assigned To:
+Assigned To: derick
[2010-07-18 01:29 UTC] k.schroeder@php.net
[2011-01-24 01:47 UTC] stas@php.net
-Status: Assigned
+Status: Feedback
[2011-01-24 01:47 UTC] stas@php.net
[2013-02-18 00:33 UTC] php-bugs at lists dot php dot net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Nov 19 22:00:02 2025 UTC |
Description: ------------ Calling setTime on a DateTime object after having called setISODate will change its date. Reproduce code: --------------- $date = new DateTime(); $date->setISODate(2009, 6); echo $date->format('Y-m-d H:i:s') . "<br />"; $date->setTime(8, 0); echo $date->format('Y-m-d H:i:s'); Expected result: ---------------- 2009-02-02 01:11:15 2009-02-02 08:00:00 Actual result: -------------- 2009-02-02 01:11:15 2009-03-06 08:00:00