You are not logged in.

#1 2010-07-17 06:19:17

655321
Member
From: Costa Rica
Registered: 2009-12-08
Posts: 412
Website

[SOLVED] Clock is crazy :S

Hi, a little help here, I currently have a strange problem with my clock, EVERYTIME i boot the clock in wrong, and if I set it to the correct time, it changes ALL of my other OS's clocks, its very weird, for example lets say Arch boots up and the clock says 3:14pm, but it is 8:26pm, If I change the time to 8:26 pm, all my other OS's (Windows and ubuntu) change time to a different one.

This shouldnt be the case cause I THINK time is operating system independent, right? I mean a change of time in one Os shouldnt have to change the other OS time.

Any info on this will be appreciated

cheers

Last edited by 655321 (2010-07-19 08:31:49)


Linux user #498977
With microsoft you get windows and gates, with linux you get the whole house!
My Blog about ArchLinux and other stuff

Offline

#2 2010-07-17 06:42:52

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED] Clock is crazy :S

There is hardware time and system (software)  time. It's in the wiki.

Offline

#3 2010-07-17 07:01:16

splittercode
Member
From: WI, USA
Registered: 2010-03-16
Posts: 203

Re: [SOLVED] Clock is crazy :S

I just use NTPD everywhere so I never have to worry about these kind of things.  Also it's kind of nice to know you have exactly the correct time on your machine (well, almost exactly).

Offline

#4 2010-07-17 07:05:08

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED] Clock is crazy :S

@ splittercode
It may be  good idea, but first OP has to set the correct time - NTPD makes sure it is kept correct, but it won't fix a ~5hrs skew.

Offline

#5 2010-07-17 09:14:46

fsckd
Forum Fellow
Registered: 2009-06-15
Posts: 4,173

Re: [SOLVED] Clock is crazy :S

655321 wrote:

This shouldnt be the case cause I THINK time is operating system independent, right? I mean a change of time in one Os shouldnt have to change the other OS time.

One way around this logical block is to think how the OS keeps track of time between power downs.


aur S & M :: forum rules :: Community Ethos
Resources for Women, POC, LGBT*, and allies

Offline

#6 2010-07-17 09:31:19

scarletxfi
Member
From: Australia
Registered: 2010-04-19
Posts: 105

Re: [SOLVED] Clock is crazy :S

also, as you are booting several OS's make sure your /etc/rc.conf, your HARDWARECLOCK is set to "localtime" instead of UTC

from the wiki "Specifies whether the hardware clock, which is synchronized on boot and on shutdown, stores UTC time, or localtime. UTC makes sense because it greatly simplifies changing timezones and daylight savings time. localtime is necessary if you dual boot with an operating system such as Windows, that only stores localtime to the hardware clock."

http://wiki.archlinux.org/index.php/Beg … ON_section

Last edited by scarletxfi (2010-07-17 09:34:44)

Offline

#7 2010-07-18 18:01:27

quigybo
Member
Registered: 2009-01-15
Posts: 223

Re: [SOLVED] Clock is crazy :S

karol wrote:

@ splittercode
It may be  good idea, but first OP has to set the correct time - NTPD makes sure it is kept correct, but it won't fix a ~5hrs skew.

ntpd -s will help here. I have the following aliased for when I boot *ahem* windows:

ntpd -d -s && sudo hwclock --systohc

Offline

#8 2010-07-18 18:16:38

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED] Clock is crazy :S

-s statsdir
    Specify the directory path for files created by the statistics facility.

I don't think I get it, what does the '-s' flag do?

Offline

#9 2010-07-18 18:41:37

anonymous_user
Member
Registered: 2009-08-28
Posts: 3,059

Re: [SOLVED] Clock is crazy :S

If you use openntpd:

     -s          Set the time immediately at startup.  Allows for a large time
                 correction, eliminating the need to run rdate(8).

Offline

#10 2010-07-18 18:47:46

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED] Clock is crazy :S

Ah, thanks anonymous_user.

Offline

#11 2010-07-19 08:31:33

655321
Member
From: Costa Rica
Registered: 2009-12-08
Posts: 412
Website

Re: [SOLVED] Clock is crazy :S

Just reporting that problem was indeed on my rc.conf, now clock doesnt change big_smile BUT, thanks to all big_smile

problem solved


Linux user #498977
With microsoft you get windows and gates, with linux you get the whole house!
My Blog about ArchLinux and other stuff

Offline

#12 2010-07-19 22:37:34

bananaoomarang
Member
Registered: 2009-10-29
Posts: 180

Re: [SOLVED] Clock is crazy :S

ahhhh, thanks, I had that same problem and now it' FIXED!!!!!

Offline

Board footer

Powered by FluxBB