]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
(get_date): Undo part of the 2005-04-04 change, so that
authorJim Meyering <jim@meyering.net>
Sat, 13 Aug 2005 12:10:05 +0000 (12:10 +0000)
committerJim Meyering <jim@meyering.net>
Sat, 13 Aug 2005 12:10:05 +0000 (12:10 +0000)
the command "date -d'2005-03-27 +1 day'" succeeds once again, even
when run in a time zone for which daylight savings time is in effect
for the starting date.

lib/getdate.y

index 9410596f2f61481afd853d0a58710180e602fc15..dafc0eae476ac0a646dc3c1c10c0b4d3112f990d 100644 (file)
@@ -1347,7 +1347,7 @@ get_date (struct timespec *result, char const *p, struct timespec const *now)
        }
 
       /* Let mktime deduce tm_isdst if we have an absolute time stamp.  */
-      if (!pc.rels_seen)
+      if (pc.dates_seen | pc.days_seen | pc.times_seen)
        tm.tm_isdst = -1;
 
       /* But if the input explicitly specifies local time with or without