php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #60581 Russia have no summer/winter offset from 2011
Submitted: 2011-12-20 22:33 UTC Modified: 2016-06-14 12:00 UTC
Votes:4
Avg. Score:4.0 ± 1.0
Reproduced:2 of 2 (100.0%)
Same Version:0 (0.0%)
Same OS:2 (100.0%)
From: ion at 66 dot ru Assigned: cmb (profile)
Status: Closed Package: Date/time related
PHP Version: 5.3.8 OS: ubuntu
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: ion at 66 dot ru
New email:
PHP Version: OS:

 

 [2011-12-20 22:33 UTC] 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

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2011-12-29 01:13 UTC] 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-29 05:21 UTC] ion at 66 dot ru
2011.14
 [2016-06-14 12:00 UTC] cmb@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: cmb
 [2016-06-14 12:00 UTC] cmb@php.net
This issue has already been resolved in the meantime, see
<https://3v4l.org/HHeKk>.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 25 14:01:31 2024 UTC