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
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
22 - 6 = ?
Subscribe to this entry?

 
 [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: Fri Mar 29 10:01:28 2024 UTC