LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 11-02-2007, 01:22 AM   #1
acummings
Member
 
Registered: Jul 2004
Distribution: Slackware
Posts: 615

Rep: Reputation: 50
Time issue Slack 12 vs Debian 4.0


Hi,

Two different Hard drives. Slack 12 on one and Debian 4.0 is on the other, the 2nd, HD.

Time works fine in Slack but not Debian where it is off by hours, near four or five hours or so off.

Both O.S. are set to "pacific" Los Angeles, United States time zone and both are set to localtime.

I can shut down from Debian then boot into Slack and the time then is fine.

It can't be a bios problem. It must be some difference between how the 2 O.S. handle time (or there's a setting I didn't yet know I needed to check).

Does anyone know where to start, what to check for on this one?

--
Alan.
 
Old 11-02-2007, 02:38 AM   #2
Alien_Hominid
Senior Member
 
Registered: Oct 2005
Location: Lithuania
Distribution: Hybrid
Posts: 2,247

Rep: Reputation: 53
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.
 
Old 11-02-2007, 02:37 PM   #3
acummings
Member
 
Registered: Jul 2004
Distribution: Slackware
Posts: 615

Original Poster
Rep: Reputation: 50
Further checks, info.:

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.

--
Alan.
 
Old 11-02-2007, 03:10 PM   #4
BCarey
Senior Member
 
Registered: Oct 2005
Location: New Mexico
Distribution: Slackware
Posts: 1,639

Rep: Reputation: Disabled
Try in Debian the command "hwclock --hctosys"

Brian
 
Old 11-02-2007, 04:04 PM   #5
acummings
Member
 
Registered: Jul 2004
Distribution: Slackware
Posts: 615

Original Poster
Rep: Reputation: 50
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).

Problem resolved, fixed. Thanks.

--
Alan.
 
Old 11-02-2007, 06:50 PM   #6
slackass
Member
 
Registered: Apr 2006
Location: SE Texas
Distribution: Slack64-15.0
Posts: 910

Rep: Reputation: 90
This also "should" work:

Using Super User File Manager <--kde
/etc/default/rcS
UTC=no

Last edited by slackass; 11-02-2007 at 06:52 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
debian: Get time from ntp (network time protocol) servers checkmate3001 LinuxQuestions.org Member Success Stories 0 09-30-2007 06:36 PM
Debian & Windows dual boot, system time issue Vigacmoe Debian 8 08-31-2006 12:14 AM
First time with Slack. Hedon Slackware 15 11-29-2005 05:23 PM
Slack 10.1 -- Mouse issue / X11 issue Pozican Linux - General 4 04-19-2005 03:44 AM
Slack time syg00 Slackware 8 04-05-2005 08:06 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 11:01 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration