summaryrefslogtreecommitdiff
path: root/lib/getdate.y
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1995-06-07 18:10:17 +0000
committerJim Meyering <jim@meyering.net>1995-06-07 18:10:17 +0000
commita2e52e58b1992bdbf956739fb1599a1265a2edc6 (patch)
tree1058c5ab205e1c2a4ccc8f26d432decc9b666b5d /lib/getdate.y
parent85bf8c2e1c017936d7f311f65c5c0fcae12c65f9 (diff)
downloadcoreutils-a2e52e58b1992bdbf956739fb1599a1265a2edc6.tar.xz
(Convert): Use 2037 as threshold, not 1999.
Otherwise years after 1999 are treated as invalid. From Andreas Schwab.
Diffstat (limited to 'lib/getdate.y')
-rw-r--r--lib/getdate.y2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/getdate.y b/lib/getdate.y
index 78d3a75da..b2c523e38 100644
--- a/lib/getdate.y
+++ b/lib/getdate.y
@@ -616,7 +616,7 @@ Convert (Month, Day, Year, Hours, Minutes, Seconds, Meridian, DSTmode)
Year += 1900;
DaysInMonth[1] = Year % 4 == 0 && (Year % 100 != 0 || Year % 400 == 0)
? 29 : 28;
- if (Year < EPOCH || Year > 1999
+ if (Year < EPOCH || Year > 2037
|| Month < 1 || Month > 12
/* Lint fluff: "conversion from long may lose accuracy" */
|| Day < 1 || Day > DaysInMonth[(int)--Month])