aboutsummaryrefslogtreecommitdiff
path: root/news/trn
diff options
context:
space:
mode:
authorSatoshi Asami <asami@FreeBSD.org>1996-07-27 00:51:11 +0000
committerSatoshi Asami <asami@FreeBSD.org>1996-07-27 00:51:11 +0000
commit82e9876ae509742a2addc9e7273d72c4b4fa9e7d (patch)
treeeb782b07d090d3d11663ad3fb0d35e861e01f348 /news/trn
parent7bc803694ae75c4a6d384e15760c6cdf2a0bfac5 (diff)
downloadports-82e9876ae509742a2addc9e7273d72c4b4fa9e7d.tar.gz
ports-82e9876ae509742a2addc9e7273d72c4b4fa9e7d.zip
Leap year fix. Will work until 2100.
Submitted by: Matt Bartley <mbartley@lear35.cytex.com>
Notes
Notes: svn path=/head/; revision=3433
Diffstat (limited to 'news/trn')
-rw-r--r--news/trn/files/patch-aa13
1 files changed, 13 insertions, 0 deletions
diff --git a/news/trn/files/patch-aa b/news/trn/files/patch-aa
new file mode 100644
index 000000000000..e08fc003e083
--- /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;
+ }