time setting in debian
Mike Reinehr
cmr
Wed Feb 22 10:41:50 PST 2006
On Tuesday 21 February 2006 08:27 pm, Collins Richey wrote:
> OK, you debian types. How does one set date/time in a debian system to
> use local time rather than UTC? The only hints I found was to include
> the following in
>
> /etc/default/rcS
>
> # Set UTC=yes if your system clock is set to UTC (GMT), and UTC=no if not.
> UTC=no
>
> But this has no effect. Time is still displayed in UTC.
>
> /etc/localtime is a link to ..../US/Mountain.
>
> Note this is a Kubuntu system, not pure debian.
>
> I get no answers from the Ubuntu forums.
Collins,
First, as the earlier replies have said and as you have surmised, you need to
edit /etc/default/rcS as above, and you need to set the timezone correctly
with tzconfig. Then you need to use hwclock to correctly set _both_ the
hardware clock and the software clock.
Personally, I would drop down to runlevel=1 to do this and then reboot. There
is a script in /etc/rc0.d (K25hwclock.sh) which will set your hardware clock
with the current software clock setting, during shutdown and it's easy to get
into a "chicken & egg" situation. In fact, it usually takes me two or three
tries, to do something like this. ;-)
Cheers!
cmr
> --
> Collins Richey
> The agnostic dyslexic insomniac lies awake wondering if there is a
> dog.
>
> _______________________________________________
> Linux-users mailing list ( Linux-users at linux-sxs.org )
> Unsub/Password/Etc:
> http://mail.linux-sxs.org/cgi-bin/mailman/listinfo/linux-users
>
> Need to chat further on this subject? Check out #linux-users on
> irc.linux-sxs.org !
--
Debian 'Sarge': Registered Linux User #241964
"More laws, less justice." -- Marcus Tullius Ciceroca, 42 BC
More information about the Linux-users
mailing list