|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
Patchesbug52142-fix_interval.c.patch (last revision 2010-08-15 21:18 UTC by strager dot nds at gmail dot com)bug52142.phpt (last revision 2010-08-15 21:18 UTC by strager dot nds at gmail dot com) Pull RequestsHistoryAllCommentsChangesGit/SVN commits
[2010-06-22 15:38 UTC] tony2001@php.net
-Status: Open
+Status: Assigned
-Assigned To:
+Assigned To: derick
[2010-08-15 23:19 UTC] strager dot nds at gmail dot com
[2010-08-15 23:20 UTC] strager dot nds at gmail dot com
[2011-12-06 06:14 UTC] derick@php.net
[2011-12-06 06:14 UTC] derick@php.net
-Status: Assigned
+Status: Closed
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Nov 08 12:00:02 2025 UTC |
Description: ------------ A DateTime object with timezone_type=1 is always set to timezone=+00:00 after the use of diff Test script: --------------- date_default_timezone_set( "Europe/Rome" ); $da = new DateTime('2010-06-22T00:00:00+02:00'); $a = new DateTime('2010/06/23'); print_r($da); $da->diff($a); // $da has been changed print_r($da); Expected result: ---------------- DateTime Object ( [date] => 2010-06-22 00:00:00 [timezone_type] => 1 [timezone] => +02:00 ) DateTime Object ( [date] => 2010-06-21 22:00:00 [timezone_type] => 1 [timezone] => +02:00 ) Actual result: -------------- DateTime Object ( [date] => 2010-06-22 00:00:00 [timezone_type] => 1 [timezone] => +02:00 ) DateTime Object ( [date] => 2010-06-21 22:00:00 [timezone_type] => 1 [timezone] => +00:00 )