freebsd-ports/news/trn/files/patch-aa
Satoshi Asami 82e9876ae5 Leap year fix. Will work until 2100.
Submitted by:	Matt Bartley <mbartley@lear35.cytex.com>
1996-07-27 00:51:11 +00:00

14 lines
377 B
Plaintext

--- 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;
}