inews and date

Russ Allbery rra at stanford.edu
Mon Sep 4 23:34:54 UTC 2000


Yar Tikhiy <yar at comp.chem.msu.su> writes:

> Doesn't it make more sense to use the local time in the `Date' header
> than the UTC time when posting with inews? STABLE dated September 3,
> 2000 uses the UTC time. The patch is simple:

> --- inews.c.orig	Sun Sep  3 13:02:26 2000
> +++ inews.c	Mon Sep  4 17:34:44 2000
> @@ -636,7 +636,7 @@
>      }
 
>      /* Set Date. */
> -    if (!makedate(0, FALSE, buff, sizeof(buff))) {
> +    if (!makedate(0, TRUE, buff, sizeof(buff))) {
>          fprintf(stderr, "Can't generate \"Date\" header\n");
>          QuitServer(1);
>      }

Both inews and nnrpd default to UTC; I don't really have strong feelings
about it either way.  (I think people's newsreaders really should rewrite
Date headers into local time for them the way that mine does, but that's
another battle.)  With nnrpd, you don't really know the time zone of the
client; with inews, I suppose you do, so it's reasonable to use local
time.  I'll make this change, unless someone sees a reason not to.

-- 
Russ Allbery (rra at stanford.edu)             <http://www.eyrie.org/~eagle/>



More information about the inn-workers mailing list