finish template work

SCCS-file: localtime.c
SCCS-SID: 7.35
This commit is contained in:
Arthur David Olson
2012-07-18 03:02:17 -04:00
committed by Paul Eggert
parent 9607231b8c
commit b415caa3ec
+4 -7
View File
@@ -832,10 +832,6 @@ const int lastditch;
** between standard and summer time, but a different ** between standard and summer time, but a different
** difference can be specified in TZ. ** difference can be specified in TZ.
*/ */
/*
** XXX--STILL MUST MAKE USE OF GMT INFO
** SCHLEPPED ELSEWHERE.
*/
isdst = FALSE; /* we start in standard time */ isdst = FALSE; /* we start in standard time */
for (i = 0; i < sp->timecnt; ++i) { for (i = 0; i < sp->timecnt; ++i) {
register const struct ttinfo * ttisp; register const struct ttinfo * ttisp;
@@ -849,9 +845,10 @@ const int lastditch;
** to the transition time. ** to the transition time.
*/ */
ttisp = &sp->ttis[sp->types[i]]; ttisp = &sp->ttis[sp->types[i]];
sp->ats[i] += if (!ttisp->tt_ttisgmt)
(isdst && !ttisp->tt_ttisstd) ? sp->ats[i] +=
dstfix : stdfix; (isdst && !ttisp->tt_ttisstd) ?
dstfix : stdfix;
isdst = ttisp->tt_isdst; isdst = ttisp->tt_isdst;
} }
} }