Req #60581 [Opn->Csd]: Russia have no summer/winter offset from 2011

From: Date: Tue, 14 Jun 2016 12:00:58 +0000
Subject: Req #60581 [Opn->Csd]: Russia have no summer/winter offset from 2011
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-201600@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=60581&edit=1

 ID:                 60581
 Updated by:         cmb@php.net
 Reported by:        ion at 66 dot ru
 Summary:            Russia have no summer/winter offset from 2011
-Status:             Open
+Status:             Closed
 Type:               Feature/Change Request
 Package:            Date/time related
 Operating System:   ubuntu
 PHP Version:        5.3.8
-Assigned To:        
+Assigned To:        cmb
 Block user comment: N
 Private report:     N

 New Comment:

This issue has already been resolved in the meantime, see
<https://3v4l.org/HHeKk>.


Previous Comments:
------------------------------------------------------------------------
[2011-12-29 05:21:53] ion at 66 dot ru

2011.14

------------------------------------------------------------------------
[2011-12-29 01:13:58] hanskrentel at yahoo dot de

Which version of the timezonedb are you using in that example? 

see as well http://pecl.php.net/package/timezonedb

------------------------------------------------------------------------
[2011-12-20 22:33:25] ion at 66 dot ru

Description:
------------
Russia have no summer/winter offset from 2011

Test script:
---------------
$winter = new DateTime('2012-12-21', new DateTimeZone('Europe/Moscow'));
$summer = new DateTime('2012-04-21', new DateTimeZone('Europe/Moscow'));

$tz[winter]= ($winter->getOffset())/60/60;
$tz[summer]= ($summer->getOffset())/60/60;
$tz[diff]=$tz[summer]-$tz[winter];
echo $tz[diff];

Expected result:
----------------
0

Actual result:
--------------
1


------------------------------------------------------------------------



--
Edit this bug report at https://bugs.php.net/bug.php?id=60581&edit=1


Thread (4 messages)

« previous php.bugs (#201600) next »