From 0971b8d8a9690b5c7a7ff04be3ec09665b7f4031 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Sat, 13 Aug 2005 12:10:05 +0000 Subject: [PATCH] (get_date): Undo part of the 2005-04-04 change, so that 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/getdate.y b/lib/getdate.y index 9410596f2f..dafc0eae47 100644 --- a/lib/getdate.y +++ b/lib/getdate.y @@ -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 -- 2.47.3