This is the mail archive of the
libc-alpha@cygnus.com
mailing list for the glibc project.
Re: Another timezone problem
- To: jaeger@gnu.org
- Subject: Re: Another timezone problem
- From: Mark Kettenis <kettenis@wins.uva.nl>
- Date: Tue, 30 Mar 1999 21:41:55 +0200 (CEST)
- CC: libc-alpha@cygnus.com, jaeger@gnu.org, jongk@cs.utwente.nl
- References: <199903301530.KAA30691@delysid.gnu.org>
Hi Andreas,
I think this patch solves the problems. The -1168 is exactly the
offset between GMT and Amsterdam Mean Time, stored in the first rule
that's in the timezone file.
Mark
1999-03-30 Mark Kettenis <kettenis@gnu.org>
* time/tzfile.c (__tzfile_read): Set rule_stdoff and rule_dstoff
according to the latest rules instead of the first rule.
--- /home/kettenis/CVS/libc/time/tzfile.c Tue Mar 30 21:16:35 1999
+++ libc/time/tzfile.c Tue Mar 30 21:21:11 1999
@@ -313,7 +313,7 @@
{
int stdoff_set = 0, dstoff_set = 0;
rule_stdoff = rule_dstoff = 0;
- for (i = 0; i < num_transitions; ++i)
+ for (i = num_transitions - 1; i >= 0; i--)
{
if (!stdoff_set && !types[type_idxs[i]].isdst)
{