From: hedrick@geneva.rutgers.edu (Charles Hedrick) Subject: Re: what time is it? Date: 7 Aug 1993 20:02:50 GMT
U21192@uicvm.uic.edu writes:
>how is the time supposed to be set in a linux system?
>is the system clock supposed to be set to GMT, and then
>a time-zone set? i can't seem to find anything in the
>linux stuff that mentions this, although the school suns
>seem to have support for both GMT and local time.
>( i was playing with xearth and noticed the sun was in
>the wrong place... about 7 hours wrong (pacific daylight time))
There's a file, time.doc, which should be distributed with Linux. It
gives the details. You've got a choice. But if you want to be really
right, you should run it the same way the Suns do: set your clock to
GMT and set /usr/lib/zoneinfo/localtime to be a copy of or link to the
right time zone file. The program "clock" can be run in /etc/rc to
set your Linux clock correctly. Use
clock -s
if DOS is set to local time (which is the usual case) or
clock -u -s
if DOS is set to GMT as well (or if you don't use DOS, and you use
clock to set your CMOS clock).