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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
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

Pull Requests

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-2025 The PHP Group
All rights reserved.
Last updated: Wed Jan 15 09:01:28 2025 UTC