changeset 1850:b6b8118c96e5

add the comment to go with last change
author Jim Meyering <jim@meyering.net>
date Thu, 20 May 1999 03:49:25 +0000
parents d591bbc0e8aa
children e0261603b55a
files lib/getdate.y
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/lib/getdate.y
+++ b/lib/getdate.y
@@ -953,8 +953,12 @@
   tm.tm_hour += yyRelHour;
   tm.tm_min += yyRelMinutes;
   tm.tm_sec += yyRelSeconds;
+
+  /* Let mktime deduce tm_isdst if we have an absolute timestamp,
+     or if the relative timestamp mentions days, months, or years.  */
   if (yyHaveDate | yyHaveDay | yyHaveTime | yyRelDay | yyRelMonth | yyRelYear)
     tm.tm_isdst = -1;
+
   tm0 = tm;
 
   Start = mktime (&tm);