Bug 808777

Summary: Almost all of the Non-geographic timezones in system-config-date result in incorrect time
Product: [Fedora] Fedora Reporter: James <fedorabugmail>
Component: tzdataAssignee: Petr Machata <pmachata>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 16CC: mnewsome, nphilipp, pmachata
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-04-02 18:57:08 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description James 2012-03-31 18:19:04 UTC
When using Non-geographic timezones in system-config-date, the resulting time is always off by 2 times the number timezones away from GMT. For instance, selecting GMT-5 should give Eastern Standard Time but instead gives Pakistan Standard Time, which is UTC+5.


system-config-date package version is 1.9.67


Steps to Reproduce:
Set timezone according to geographic location
Update clock using ntpdate
Observe correct time is set

Set timezone using GMT-5 for Eastern Standard Time.
Update clock using ntpdate
Observe time is off by +10 hours.

Comment 1 Nils Philippsen 2012-04-02 09:34:18 UTC
It seems that the non-geographic time zones are named counterintuitively.

This is what I got when setting the time zone to "GMT-2" and "GMT+5" which right now correspond to Central European Summer Time (DST) and Eastern Standard Time, respectively:

nils@gibraltar:~> date -R
Mon, 02 Apr 2012 11:13:05 +0200
nils@gibraltar:~> date
Mon Apr  2 11:13:09 GMT-2 2012

nils@gibraltar:~> date -R
Mon, 02 Apr 2012 04:14:01 -0500
nils@gibraltar:~> date
Mon Apr  2 04:14:02 GMT+5 2012

The names of the time zones are defined in tzdata, changing component accordingly.

Comment 2 Petr Machata 2012-04-02 18:57:08 UTC
Yes they are.  It's silly, I don't know what rationale there is for this, but apparently POSIX mandates this.

*** This bug has been marked as a duplicate of bug 224442 ***