LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   system clock adjusts for time zone every startup (https://www.linuxquestions.org/questions/slackware-14/system-clock-adjusts-for-time-zone-every-startup-601973/)

dracolich 11-23-2007 03:50 PM

system clock adjusts for time zone every startup
 
This one's been bugging me since daylight savings ended on Nov. 4. Every time I start the computer the hardware clock is correct but the system clock is -5 hours (GMT -5). I can manually adjust it with the date or hwclock commands but the next time I start it the same thing happens. This machine dual boots Slackware 12 and Win2K. Win2K doesn't have the problem, the BIOS clock is correct and my laptop, running Slackware 12 only, doesn't have the problem.

I compared /etc/adjtime to the laptop and tried deleting it. Both computers use localtime and don't have anything /etc/sysconfig. I tried booting into Windows and changing the time. When daylight savings ended the clock didn't adjust itself although I have the patched glibc-zoneinfo and /etc/localtime is linked to the correct file in /usr/share/zoneinfo. The laptop did change correctly. I could probably work around it by setting the hwclock +5 but that wouldn't really solve the problem.

Or am I wrong and the hwclock should be +5 and the laptop is the one that's wrong?

Alien_Hominid 11-23-2007 04:25 PM

Check this (last post): http://www.linuxquestions.org/questi...an-4.0-596526/

evilDagmar 11-24-2007 04:50 AM

Or, less gnomically...

Win2k requires the hardware/BIOS clock be stored in your local time, i.e., if the clock on your wall says it's 5:23pm, that's what you need to set the BIOS to.

Then you need to run timeconfig, and select "NO Hardware clock is set to local time", or just edit /etc/hardwareclock and change "UTC" to "localtime".

Vista supposedly doesn't have the "DOS Backwards Compatibility" requirement that is the reason/excuse Microsoft made everything screw up horribly if you try to tell say, XP to use UTC for the clock, but I'll believe it when I see it.

dracolich 11-24-2007 07:20 AM

Thanks for the link, Alien_Hominid. All I needed was the --localtime switch. I know I searched here at least twice but I didn't see that thread. I'm adding this to my notebook for future reference.

evilDagmar, that's why I dusted off my Win2k and booted into it forcing it to save some changes. I'll believe Vista's "improvements" when I see them, too, which I hope isn't anytime soon.

Thanks, guys.

Alien_Hominid 11-24-2007 12:12 PM

XP isn't really DOS compatible. NTVDM is crap. If anyone needs real DOS compatibility, he needs to use DosBox.


All times are GMT -5. The time now is 10:59 AM.