You are not logged in.

#1 2010-03-18 08:49:21

dncrash
Member
Registered: 2009-10-11
Posts: 22

Time

Hello
The time in linux always goes 2 hours ahead after i reboot into windows (I dual-boot for games). I don't know why it does this. I tried setting it from rc.conf to both UTC and localtime and it does the same thing. I even installed ntp hoping this would fix the problem but it hasn't. Does anyone know how to fix this ?

Offline

#2 2010-03-18 08:54:59

Berticus
Member
Registered: 2008-06-11
Posts: 731

Re: Time

The hardware clock needs to be adjusted to localtime too.

Offline

#3 2010-03-18 10:09:51

Primoz
Member
From: Ljubljana-Slovena-EU
Registered: 2009-03-04
Posts: 688

Re: Time

Also use ntpd or openntpd. Check the wiki on how to set it.


Arch x86_64 ATI AMD APU KDE frameworks 5
---------------------------------
Whatever I do, I always end up with something horribly mis-configured.

Offline

#4 2010-03-18 11:14:17

Berticus
Member
Registered: 2008-06-11
Posts: 731

Re: Time

yes, openntpd is also another thing you can use, but I would use that on top of setting hwclock to localtime. Attack the problem at the root.

Offline

#5 2010-03-18 11:34:12

dncrash
Member
Registered: 2009-10-11
Posts: 22

Re: Time

I adjusted the hwclock and set up ntpd and still get this problem. I think it's a windows issue but this still seems like the best place to ask for help smile

Offline

#6 2010-03-18 12:11:36

kgas
Member
From: Qatar
Registered: 2008-11-08
Posts: 718

Re: Time

just try to remove the /var/lib/hwclock/adjtime and reboot.

Offline

#7 2010-03-18 12:49:47

dncrash
Member
Registered: 2009-10-11
Posts: 22

Re: Time

kgas wrote:

just try to remove the /var/lib/hwclock/adjtime and reboot.

I did and it still didn't fix my problem. I notice though that the hwclock is correct. If I type hwclock -r i get the right time, but in the taskbar the time is still off by 2 hours.

Offline

#8 2010-03-18 12:58:35

bernarcher
Forum Fellow
From: Germany
Registered: 2009-02-17
Posts: 2,281

Re: Time

Are both Windows and Linux time bases alike (i.e. both local or both UTC)?
If set to local, is HARDWARECLOCK="localtime" in /etc/rc.conf (not merely "local")?

The problem could be caused by the desktop environment, too. Perhaps there are some more settings. Which DE do you use?

Last edited by bernarcher (2010-03-18 13:01:30)


To know or not to know ...
... the questions remain forever.

Offline

#9 2010-03-18 18:06:57

dncrash
Member
Registered: 2009-10-11
Posts: 22

Re: Time

In linux the hardwareclock is set to "ntp". I put that in there after reading the arch wiki. The desktop environment is xfce4. In windows i don't know what the time base is but i'll check asap and post the result.

Edit: I checked. In windows the time is set to UTC +2, as it normally would be, because that's the timezone in the country i live in.

Last edited by dncrash (2010-03-18 18:15:25)

Offline

#10 2010-03-18 21:48:23

bernarcher
Forum Fellow
From: Germany
Registered: 2009-02-17
Posts: 2,281

Re: Time

dncrash wrote:

In windows the time is set to UTC +2, as it normally would be, because that's the timezone in the country i live in.

There are the two hours. Universal time is timezone indifferent. If you want to use the timezone where you live you have to use local time.


To know or not to know ...
... the questions remain forever.

Offline

#11 2010-03-20 08:17:19

dncrash
Member
Registered: 2009-10-11
Posts: 22

Re: Time

I set the windows time to UTC since there is no localtime option available and now it seems to be working properly under linux. Thanks guys smile

Offline

Board footer

Powered by FluxBB