Subject: Re: weird ftp date
To: None <khym@bga.com>
From: None <Havard.Eidnes@runit.sintef.no>
List: current-users
Date: 11/08/1998 16:11:50
> On Sat, 7 Nov 1998, Tom T. Thai wrote:
> > look at the date of the dir and files... I see 1997 when I
> > use NetScape on Win98 to get there.  But when I ftp via
> > NetBSD, the year doesn't show when I do ls -l so I assume
> > it's current.  Here is the output.
>
> > -rw-r--r--  1 1162  netbsd  84626 Nov  7 21:44 INSTALL
> [ ... ]
>
> Maybe NetBSD's ftp is just showing what the ftp server sends,
> but Netscape and Win98 try to figure out the year from that
> info. At least in the US, Nov 7 21:44 1998 is in the future, so
> Netscape figures that the year must be 1997. That's my guess,
> at least :)

Oh, I think I see what's going on here.

The timestamps on the machine in question look fine:

nbftp% pwd
/ftp/pub/NetBSD/arch/i386/snap-19981105/NetBSD-1.3H/i386
nbftp% ls -lT INSTALL
-rw-r--r--  1 he  netbsd  84626 Nov  7 13:44:36 1998 INSTALL
nbftp%

However, when I ftp in, I also see "Nov 7 21:44:36 1998" (if I
supply the "-T" option I get the year and seconds too).  I suspect
the reason is that the time is not shown in local US west coast
time, but rather in UTC, the reason being that /etc/localtime is not
present in the chrooted environment used by the ftp server when you
log in anonymously.  I'm not sure whether this is intentional or
not, but if it isn't, I think that adding a suitable localtime file
to the chrooted tree could "fix" it (I would however not agree that
it's a good idea to do this, BTW...).

Anyway, we can hope that the "problem" with the Netscape/Win98
combination is gone now, since we're now past 21:44 Nov 7 1998 PST.


Regards,

- H=E5vard