From d55f775d921579856c74707d1441b712992ccd0a Mon Sep 17 00:00:00 2001 From: Thomas Roessler Date: Sat, 1 Jan 2000 17:59:20 +0000 Subject: [PATCH] A y2k fix for those who still use two-digit year numbers as originally specified in RFC 822. --- parse.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/parse.c b/parse.c index 70543a97..64227830 100644 --- a/parse.c +++ b/parse.c @@ -721,7 +721,9 @@ time_t mutt_parse_date (const char *s, HEADER *h) case 2: /* year */ tm.tm_year = atoi (t); - if (tm.tm_year >= 1900) + if (tm.tm_year < 70) + tm.tm_year += 100; + else if (tm.tm_year >= 1900) tm.tm_year -= 1900; break; -- 2.40.0