projects
/
pspp
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0424b45
)
(Convert): Use 2037 as threshold, not 1999.
author
Jim Meyering
<jim@meyering.net>
Wed, 7 Jun 1995 18:10:17 +0000
(18:10 +0000)
committer
Jim Meyering
<jim@meyering.net>
Wed, 7 Jun 1995 18:10:17 +0000
(18:10 +0000)
Otherwise years after 1999 are treated as invalid.
From Andreas Schwab.
lib/getdate.y
patch
|
blob
|
history
diff --git
a/lib/getdate.y
b/lib/getdate.y
index 78d3a75dad338ac673161bf034abcaab9e50a17c..b2c523e38fe9249db170e02f51289f8600982332 100644
(file)
--- 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])