1
0
mirror of https://frontier.innolan.net/rainlance/amiga-tz.git synced 2025-12-09 00:06:52 +00:00

Algeria case

SCCS-file: zic.c
SCCS-SID: 7.15
This commit is contained in:
Arthur David Olson
1993-10-31 17:05:42 -05:00
committed by Paul Eggert
parent 5e23596e17
commit 1e57de66d5

38
zic.c
View File

@ -1447,21 +1447,33 @@ const int zonecount;
if (useuntil && ktime >= untiltime) if (useuntil && ktime >= untiltime)
break; break;
if (usestart) { if (usestart) {
if (ktime < starttime) { if (ktime < starttime) {
stdoff = rp->r_stdoff; stdoff = rp->r_stdoff;
startoff = oadd(zp->z_gmtoff, startoff = oadd(zp->z_gmtoff,
rp->r_stdoff); rp->r_stdoff);
(void) sprintf(startbuf, (void) sprintf(startbuf, zp->z_format,
zp->z_format, rp->r_abbrvar);
rp->r_abbrvar); startisdst = rp->r_stdoff != 0;
startisdst = continue;
rp->r_stdoff != 0; }
continue; usestart = FALSE;
if (ktime != starttime) {
if (startisdst < 0 &&
zp->z_gmtoff !=
(zp - 1)->z_gmtoff) {
type = types[(timecnt == 0) ?
0 : (timecnt - 1)];
startoff = oadd(gmtoffs[type],
-(zp - 1)->z_gmtoff);
startisdst = startoff != 0;
startoff = oadd(startoff,
zp->z_gmtoff);
(void) strcpy(startbuf,
&chars[abbrinds[type]]);
} }
if (ktime != starttime && if (startisdst >= 0)
startisdst >= 0)
addtt(starttime, addtype(startoff, startbuf, startisdst, startttisstd)); addtt(starttime, addtype(startoff, startbuf, startisdst, startttisstd));
usestart = FALSE; }
} }
eats(zp->z_filename, zp->z_linenum, eats(zp->z_filename, zp->z_linenum,
rp->r_filename, rp->r_linenum); rp->r_filename, rp->r_linenum);