From d5181b8027ef263167bfc8a119428a573ccdac08 Mon Sep 17 00:00:00 2001 From: asami Date: Sat, 27 Jul 1996 00:51:11 +0000 Subject: Leap year fix. Will work until 2100. Submitted by: Matt Bartley --- news/trn/files/patch-aa | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 news/trn/files/patch-aa (limited to 'news') diff --git a/news/trn/files/patch-aa b/news/trn/files/patch-aa new file mode 100644 index 0000000..e08fc00 --- /dev/null +++ b/news/trn/files/patch-aa @@ -0,0 +1,13 @@ +--- nntp.c.orig Fri Nov 18 22:01:23 1994 ++++ nntp.c Sun Jul 21 13:13:58 1996 +@@ -319,8 +319,8 @@ + for (month--; month; month--) + day += maxdays[month]; + +- ss = ((((year-1970) * 365 + (year-1968)/4 + day - 1) * 24L + hh) * 60 +- + mm) * 60 + ss; ++ ss = ((((year-1970) * 365 + (year-1969)/4 + day - 1) * 24L + hh) * 60 ++ + mm) * 60 + ss; + + return ss; + } -- cgit v1.1