LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (https://www.linuxquestions.org/questions/debian-26/)
-   -   Time is not using local time but uses UTC (https://www.linuxquestions.org/questions/debian-26/time-is-not-using-local-time-but-uses-utc-596686/)

acummings 11-02-2007 02:52 PM

Time is not using local time but uses UTC
 
Debian 4.0

My bios clock is set to local time of time zone America, Los_Angeles

When Deb 4 installed, I thought I told it to use local time.

Gnome it (displays the wrong time) displays exactly 7 hours earlier in the day.

UTC time is exactly 7 hours ahead of America, Los_Angeles time zone.

So, it appears that Deb is translating from UTC even though I thought I had told it not to do so.

Gnome (as user, ie /home/al) it shows using local time and using Los_Angeles time zone.

So, what/where are the underlying mechanisms/commands

What am I yet to learn?

Should I give up on local time and use UTC?

I also use Slackware 12 who, unlike Debian, does display the correct time when told to use local time.

Thanks.

--
Alan.

acummings 11-02-2007 03:57 PM

Somehow, (wasn't supposed to) but nonetheless did, was set as if the hwclock (bios clock) is using UTC

But my bios clock is not set to UTC; I have it set to local time.

hwclock is the relevant command.

man hwclock

AB60R:~# hwclock --localtime --hctosys

That fixed it. It now thinks my bios clock uses local time. Gnome now displays the correct time.

The above listed man page reports that it will keep using what it formerly had been set at (either UTC or local time) unless you call it with either the utc or the localtime option.

The above listed command calls it with the local time option which sets it to use local time. Works upon reboot too (I checked it).

--
Alan.

Speek 11-03-2007 01:58 PM

In /etc/default/rcS you can set UTC to yes or no.


All times are GMT -5. The time now is 04:32 PM.