ID: 44264
User updated by: kungla at gmail dot com
Reported By: kungla at gmail dot com
Status: Open
Bug Type: Date/time related
Operating System: Win XP SP2
PHP Version: 5.2.5
New Comment:
Sorry class is DateTime not Time. Same issue with date('c', giventime)
Previous Comments:
------------------------------------------------------------------------
[2008-02-27 13:42:43] kungla at gmail dot com
Description:
------------
On some dates timezone goes wrong. Big problem for me - can't go on
whith my work!!!
Reproduce code:
---------------
$date1 = new Date('02.01.1980', new DateTimeZone('Europe/Tallinn'));
$date2 = new Date('02.01.1990', new DateTimeZone('Europe/Tallinn'));
echo $date1->format('c'). ' ' . $date2->format('c');
Expected result:
----------------
1980-01-02T00:00:00+02:00 1990-01-02T00:00:00+02:00
Actual result:
--------------
1980-01-02T00:00:00+03:00 1990-01-02T00:00:00+02:00
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=44264&edit=1