mirror of
https://frontier.innolan.net/rainlance/amiga-tz.git
synced 2025-12-08 01:26:58 +00:00
Harris fixes
SCCS-file: localtime.c SCCS-SID: 4.25
This commit is contained in:
committed by
Paul Eggert
parent
573ae23407
commit
53ea157e18
@ -136,7 +136,7 @@ register const struct state * const sp;
|
||||
timezone = -sp->ttis[0].tt_gmtoff;
|
||||
daylight = 0;
|
||||
#endif /* defined USG_COMPAT */
|
||||
for (i = 1; i < sp->typecnt; ++i) {
|
||||
for (i = 0; i < sp->typecnt; ++i) {
|
||||
register const struct ttinfo * ttisp;
|
||||
|
||||
ttisp = &sp->ttis[i];
|
||||
@ -693,6 +693,13 @@ register struct state * const sp;
|
||||
*/
|
||||
isdst = FALSE; /* we start in standard time */
|
||||
for (i = 0; i < sp->timecnt; ++i) {
|
||||
/*
|
||||
** XXX - if the DST end time was specified
|
||||
** as "standard" rather than "local" time,
|
||||
** all transition times should be shifted
|
||||
** by "stdfix". Unfortunately, we don't
|
||||
** know how they were specified....
|
||||
*/
|
||||
sp->ats[i] += isdst ? dstfix : stdfix;
|
||||
isdst = sp->ttis[sp->types[i]].tt_isdst;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user