Edit report at http://bugs.php.net/bug.php?id=54145&edit=1
ID: 54145
Comment by: giorgio dot liscio at email dot it
Reported by: giorgio dot liscio at email dot it
Summary: DateTime->add is not affected by DST changes
Status: Open
Type: Bug
Package: Date/time related
Operating System: all?
PHP Version: 5.3.5
Block user comment: N
Private report: N
New Comment:
proposed solution:
->add and ->sub methods should internally convert to UTC before add or
sub the interval, then should re-set the original timezone
Previous Comments:
------------------------------------------------------------------------
[2011-03-03 01:51:35] giorgio dot liscio at email dot it
Description:
------------
hi
when dateinterval walks across a dst change
$a = DateTime::createFromFormat
(
"d/m/Y H:i:s e",
"03/03/2011 01:38:25 europe/rome"
);
$a = $a->add(new DateInterval("P1M")); // now we have DST in italy
should add +1 hour too, I think, but it doesn't
thank you
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/bug.php?id=54145&edit=1