[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[leafnode-list] Incorrect GMT offset in NEWGROUPS command
When using the additional "GMT" in a NEWGROUPS command, leafnode does
not compute the timezone offset properly.
For example:
| 200 Leafnode NNTP Daemon, version 1.9.17 running at neon.eswe.dyndns.org
| newgroups 001029 160000
| 231 List of new newsgroups since 972831600 follows
| .
| newgroups 001029 150000 GMT
| 231 List of new newsgroups since 972824400 follows
| .
My local timezone is CET (GMT +0100), so both time specifications
should mean the same.
This also occurs in the 2.0b3 version and the NEWNEWS command.
For consistency with the libc "tm_gmtoff", I suggest the following
change to gmtoff() (to 2.0b3):
--- nntpd.c.orig Fri Oct 27 18:00:53 2000
+++ nntpd.c Sun Oct 29 16:41:43 2000
@@ -151,7 +151,7 @@
putenv( oldzone );
free( oldzone );
- return( gmtsec - localsec );
+ return( localsec - gmtsec );
}
/*
Note that this is the reason why slrn sometimes seems to find the same
new groups on each invocation.
Stefan
--
leafnode-list@xxxxxxxxxxxxxxxxxxxxxxxxxxxx -- mailing list for leafnode
To unsubscribe, send mail with "unsubscribe" in the subject to the list