#44264 [Opn]: wrong timezone

From: Date: Wed, 27 Feb 2008 13:46:43 +0000
Subject: #44264 [Opn]: wrong timezone
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-122743@lists.php.net to get a copy of this message
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

« previous php.bugs (#122743) next »