add the comment to go with last change
[gnulib.git] / lib / getdate.y
index bfaf2f1..9dc1048 100644 (file)
@@ -953,8 +953,12 @@ get_date (const char *p, const time_t *now)
   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);