This is the mail archive of the glibc-bugs@sources.redhat.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libc/1140] New: zdump reports invalid timezone name


According to the timezone data of Lisbon, their timezone was LMT before 1911
and CET between 1966 and 1976. They also had CEST and WEMT and other values in
addition to WET and WEST being used nowadays. Using the standard date(1)
command from coreutils 5.2 this can easily be seen:

$ export TZ=Europe/Lisbon
$ date -d '1910/01/01'
Sun Jan  1 00:00:00 LMT 1910
$ date -d '1970/01/01'
Thu Jan  1 00:00:00 CET 1970

However, zdump of glibc (tested with 2.3.2, 2.3.3 and 2.3.5) always reports WET
or WEST as the timezone name:
[I've stripped the 1st column from the output for better readability]

$ /usr/sbin/zdump -v /usr/share/zoneinfo/Europe/Lisbon
Fri Dec 13 20:45:52 1901 UTC = Fri Dec 13 20:09:20 1901 WET isdst=0 gmtoff=-2192
Sat Dec 14 20:45:52 1901 UTC = Sat Dec 14 20:09:20 1901 WET isdst=0 gmtoff=-2192
Mon Jan  1 00:36:31 1912 UTC = Sun Dec 31 23:59:59 1911 WET isdst=0 gmtoff=-2192
Mon Jan  1 00:36:32 1912 UTC = Mon Jan  1 00:36:32 1912 WET isdst=0 gmtoff=0
[...]
Sun Apr  3 01:59:59 1966 UTC = Sun Apr  3 01:59:59 1966 WET isdst=0 gmtoff=0
Sun Apr  3 02:00:00 1966 UTC = Sun Apr  3 03:00:00 1966 WET isdst=0 gmtoff=3600
Sat Sep 25 23:59:59 1976 UTC = Sun Sep 26 00:59:59 1976 WET isdst=0 gmtoff=3600
Sun Sep 26 00:00:00 1976 UTC = Sun Sep 26 00:00:00 1976 WET isdst=0 gmtoff=0
[...]

I downloaded several versions of tzcode, including 2002d which is the oldest
one I've found and 2005k which is the current one, compiled their zdump by
typing "make zdump". All these versions produced the correct output:

$ ./zdump -v /usr/share/zoneinfo/Europe/Lisbon
Fri Dec 13 20:45:52 1901 UTC = Fri Dec 13 20:09:20 1901 LMT isdst=0
Sat Dec 14 20:45:52 1901 UTC = Sat Dec 14 20:09:20 1901 LMT isdst=0
Mon Jan  1 00:36:31 1912 UTC = Sun Dec 31 23:59:59 1911 LMT isdst=0
Mon Jan  1 00:36:32 1912 UTC = Mon Jan  1 00:36:32 1912 WET isdst=0
[...]
Sun Apr  3 01:59:59 1966 UTC = Sun Apr  3 01:59:59 1966 WET isdst=0
Sun Apr  3 02:00:00 1966 UTC = Sun Apr  3 03:00:00 1966 CET isdst=0
Sat Sep 25 23:59:59 1976 UTC = Sun Sep 26 00:59:59 1976 CET isdst=0
Sun Sep 26 00:00:00 1976 UTC = Sun Sep 26 00:00:00 1976 WET isdst=0
[...]

So at this moment I have no idea whether the bug is in tzcode or in other parts
of glibc, but there's definitely a bug somewhere.

I'll also notify the contact address (tz at elsie nci nih gov) of tzcode and
point them to this bugzilla entry, so I hope you can quickly find the solution.

-- 
           Summary: zdump reports invalid timezone name
           Product: glibc
           Version: 2.3.5
            Status: NEW
          Severity: minor
          Priority: P2
         Component: libc
        AssignedTo: gotom at debian dot or dot jp
        ReportedBy: egmont at uhulinux dot hu
                CC: glibc-bugs at sources dot redhat dot com


http://sources.redhat.com/bugzilla/show_bug.cgi?id=1140

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]