summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2005-08-13 12:10:05 +0000
committerJim Meyering <jim@meyering.net>2005-08-13 12:10:05 +0000
commit0971b8d8a9690b5c7a7ff04be3ec09665b7f4031 (patch)
treed10d07a89a5c99b98bfe7f5480c803108d488d28 /lib
parent04de70c8d2012dab319786ed6066e9ddb9999757 (diff)
downloadcoreutils-0971b8d8a9690b5c7a7ff04be3ec09665b7f4031.tar.xz
(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.
Diffstat (limited to 'lib')
-rw-r--r--lib/getdate.y2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/getdate.y b/lib/getdate.y
index 9410596f2..dafc0eae4 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