summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1996-12-10 04:34:18 +0000
committerJim Meyering <jim@meyering.net>1996-12-10 04:34:18 +0000
commit8f477a90727f773b2483a4b5a74fdee2b683657f (patch)
tree275501f95b076168c5b6fb2492ead77e3cbda0fe /lib
parentd5ce3b1c3cf47d59d0943c4c6a2de9fc1a9d1fcb (diff)
downloadcoreutils-8f477a90727f773b2483a4b5a74fdee2b683657f.tar.xz
(Convert): Don't reject all dates in 2038.
Some fit in 31 bits.
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 8e35c9203..f7040182a 100644
--- a/lib/getdate.y
+++ b/lib/getdate.y
@@ -690,7 +690,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 >= DOOMSDAY
+ if (Year < EPOCH || Year > DOOMSDAY
|| Month < 1 || Month > 12
/* Lint fluff: "conversion from long may lose accuracy" */
|| Day < 1 || Day > DaysInMonth[(int)--Month])