From 0d4eb488d06cb19a9cc9558600b7ea0d394b738e Mon Sep 17 00:00:00 2001 From: Arthur David Olson Date: Sat, 1 Mar 1986 14:31:27 -0500 Subject: [PATCH] heuristic approach to zeroeth transition SCCS-file: zic.c SCCS-SID: 1.8 --- zic.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/zic.c b/zic.c index d7085d0..705cade 100644 --- a/zic.c +++ b/zic.c @@ -878,8 +878,13 @@ register struct zone * zp; ** switch results in a day switch; this is left as an exercise ** for the reader. */ - if (i > 0) - t.tz_times[i] -= temps[i - 1].t_rp->r_stdoff; + if (i == 0) { + /* + ** Kludge--not guaranteed to work. + */ + if (ntemps > 1) + t.tz_times[0] -= temps[1].t_rp->r_stdoff; + } else t.tz_times[i] -= temps[i - 1].t_rp->r_stdoff; } writezone(zp->z_name, &t); return;