Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 103041 - Timezones in /usr/share/zoneinfo/Etc/GMT* : +/- are reversed
Summary: Timezones in /usr/share/zoneinfo/Etc/GMT* : +/- are reversed
Status: RESOLVED FIXED
Alias: None
Product: [OLD] Docs-user
Classification: Unclassified
Component: Handbook (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Xavier Neys (RETIRED)
URL: http://forums.gentoo.org/viewtopic-t-...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-08-19 02:12 UTC by Wickersheimer Jérémy
Modified: 2005-08-21 10:48 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Wickersheimer Jérémy 2005-08-19 02:12:19 UTC
Using Etc/GMT+X will be reported as GMT+X by date, but the time really 
computed is GMT-X (and inversely with GMT-X). 
This is an old glibc bug that is at least 5 years old. It seems to be due to 
POSIX specification and most probably won't get fixed anytime soon (if not at 
all). 
As a result Etc/ timezones should not be used, so it would be good if this 
problem was mentioned in the Handbook in order to avoid new users confusion. 

Reproducible: Always
Steps to Reproduce:
1.date                                                                                                     
Fri Aug 19 17:11:40 CST 2005 
(note: CST here is China time (Asia/Shanghai) which is in the GMT+8 timezone) 
2.date -u                                                                                                 
Fri Aug 19 09:11:45 UTC 2005 
3.TZ="Etc/GMT+8" date                                                                                     
Fri Aug 19 01:11:54 GMT+8 2005 
4.TZ="Etc/GMT+8" date -u                                                                                   
Fri Aug 19 09:11:56 UTC 2005
Comment 1 Xavier Neys (RETIRED) gentoo-dev 2005-08-21 10:48:13 UTC
In CVS. Thanks for reporting.