Mercurial > hg > octave-lojdl > gnulib-hg
changeset 3228:adeccf81e409
that's necessary when the offset spans a DST transition.
author | Jim Meyering <jim@meyering.net> |
---|---|
date | Sun, 08 Apr 2001 19:58:59 +0000 |
parents | 255cd439f908 |
children | 047f148f6935 |
files | lib/getdate.y |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/lib/getdate.y +++ b/lib/getdate.y @@ -990,7 +990,8 @@ /* Let mktime deduce tm_isdst if we have an absolute time stamp, or if the relative time stamp mentions days, months, or years. */ - if (pc.dates_seen | pc.days_seen | pc.times_seen | pc.rel_day | pc.rel_month | pc.rel_year) + if (pc.dates_seen | pc.days_seen | pc.times_seen | pc.rel_day + | pc.rel_month | pc.rel_year) tm.tm_isdst = -1; /* But if the input explicitly specifies local time with or without @@ -1037,6 +1038,7 @@ { tm.tm_mday += ((pc.day_number - tm.tm_wday + 7) % 7 + 7 * (pc.day_ordinal - (0 < pc.day_ordinal))); + tm.tm_isdst = -1; Start = mktime (&tm); if (Start == (time_t) -1) return Start;