From mboxrd@z Thu Jan 1 00:00:00 1970 To: 9fans@cse.psu.edu From: David Bulkow Message-ID: <3D9DE2EC.F70A1ECF@sw.stratus.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit References: Subject: Re: [9fans] fs sntp - GMT or localtime? Date: Mon, 7 Oct 2002 10:41:39 +0000 Topicbox-Message-UUID: fef9a7be-eaca-11e9-9e20-41e7f4b1d025 nigel@9fs.org wrote: > The date is local time I think. > > You need to set > > /sys/src/fs/port/time.c:/^} timezone/ > > to match where you live. What does it say? The timezone is 5*60 and dsttime is 1, which makes sense for my location. I just finished an experiment which seems to indicate that the fileserver expects to be set to GMT/UTC. - set fileserver to "local time" - boot a terminal The terminal time is now 6 hours BEFORE local time. Once timesync gets sync'ed up, the terminal time jumps back to local time. - set fileserver to sntp time (6 hours forward) - boot a terminal The terminal time now matches local time. Timesync, once sync'ed, also provides local time. With this test information and another perusal of the sources, I am now see the fileserver "date" command reports time without a timezone translation. I also determined that the terminal sets its time based on the access time of '#s/boot', which matches my read of the code, as the fs will use timezone when setting access times. Perhaps "date" should reflect the timezone.