1
0
mirror of https://frontier.innolan.net/rainlance/amiga-tz.git synced 2025-12-08 03:03:48 +00:00

heuristic approach to zeroeth transition

SCCS-file: zic.c
SCCS-SID: 1.8
This commit is contained in:
Arthur David Olson
1986-03-01 14:31:27 -05:00
committed by Paul Eggert
parent 0c068fc614
commit 0d4eb488d0

9
zic.c
View File

@ -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;