SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I've had similar problem. BIOS time was local, but OS took it as UTC and because I selected to display localtime, it added +2 hours. If I remember correctly, there was some setting in Gnome date manager to use UTC or not. Might be smth similar in KDE too.
Bios clock is set to local time at time zone America, Los_Angeles
Slack 12 displays the correct time so it's reflecting this about what the bios clock is set to.
Debian 4 displays exactly 7 hours off, 7 hours earlier in the day.
All of this tells me that Debian is (incorrectly) thinking that my bios clock is set to UTC since to convert from UTC time would provide (the 7 hour difference)
Both O.S. set to use localtime.
Likely is in gdm.conf or some obscure place on Debian (so far unable to find what/where)
A time howto said about link /usr/share/zoneinfo/america/Los_Angeles link that to /etc/localtime
But neither of these 2 O.S. have or use such link. And, Slack displays the correct time.
??
Look how many different ways there are to get X started in Linux.
Likely this (multiple ways) also goes on with how time gets managed too.
Thanks. Very close. But, it also needed the --localtime option so as to get Debian habituated to that my bios clock is set to localtime not set to utc time.
Somehow, only in Debian, (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 (KDE in Debian too).
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 (habituates Linux that my bios clock is set to local time). Works upon reboot too (I checked it).
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.