From: Jim Meyering Date: Sat, 13 Aug 2005 12:10:05 +0000 (+0000) Subject: (get_date): Undo part of the 2005-04-04 change, so that X-Git-Tag: CPPI-1_12~176 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=0971b8d8a9690b5c7a7ff04be3ec09665b7f4031;p=thirdparty%2Fcoreutils.git (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. --- 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