Red Hat Bugzilla – Bug 236909
GMT-1 results in time for GMT+1, and vice versa
Last modified: 2007-11-30 17:06:55 EST
Description of problem:
System: Red Hat Enterprise Linux ES release 2.1 (Panama) Update 6
date / timeconfig inverses time-difference relative to GMT
whilst trying to configure the machine for Central European --Winter-- Time
Version-Release number of selected component (if applicable):
# use timeconfig to set the timezone
Steps to Reproduce:
# Current date:
Wed Apr 18 11:57:12 UTC 2007
# Set to correct timezone:
sudo /usr/sbin/timeconfig Etc/GMT+1
Wed Apr 18 10:57:06 GMT+1 2007
# (Incorrect time, should be 12:57:06 GMT+1 2007)
# Set to INcorrect timezone
sudo /usr/sbin/timeconfig Etc/GMT-1
Wed Apr 18 12:57:11 GMT-1 2007
# reported time matches local time, but timezone incorrect.
GMT+1 should reports incorrect local wintertime for Amsterdam
I'm not sure if the bug is in date, the timezone-definitions or in date itself.
One thing I'd like to mention is that you shouldn't need to manually switch
between winter/normal and summer/daylight savings time. Set the timezone to
Europe/Amsterdam to automatically switch between summer- and wintertime.
Aside from that, which version of the tzdata package do you have? Please check
(and eventually attach) the MD5 or SHA sums of /etc/localtime,
/usr/share/zoneinfo/Etc/* to see whether timeconfig set the wrong localtime file
or something is wrong with tzdata.
The problen is that the servers need to be -fixed to- wintertime.
The software itself needs the O/S to use wintertime.
There is no tzdata package in RPM, all I get is:
$ rpm -q tzdata
package tzdata is not installed
$ rpm -qa time*
This is what I can get you w.r.t. the timezone data:
$ file /etc/localtime
/etc/localtime: timezone data
$ more /etc/localtime
$ head -1 zone.tab
# @(#)zone.tab 1.28
$ cat GMT+1
$ md5sum GMT+1
$ cat GMT-1
$ md5sum GMT-1
$ cat UTC
$ md5sum UTC
$ cat GMT
$ md5sum GMT
$ ll /usr/share/zoneinfo/Etc |grep -e GMT$ -e GMT-1$ -e GMT+1$ -e UTC
-rw-r--r-- 10 root root 56 Oct 6 2004 GMT
-rw-r--r-- 1 root root 58 Oct 6 2004 GMT-1
-rw-r--r-- 1 root root 58 Oct 6 2004 GMT+1
-rw-r--r-- 6 root root 56 Oct 6 2004 UTC
There's plenty other files in that Dir, but doing them all seemed like overkill
If there's any other way I can help, I'd gladly hear it
Hm, I just tried it here and it selected the correct timezone file for
/etc/localtime (I chose GMT+1). It seems your installation is quite old as you
don't have a tzdata package installed, that may be your problem. Updated
packages for glibc and tzdata are available which may fix your problem (you
might need to re-run timeconfig afterwards to get the correct timezone file
copied over to /etc/localtime.
Please re-open with more info if you think there is still a bug here.
Florian La Roche