Windows vs Linux Clock causing problems

joe areeda
joe areeda
Joined: 13 Dec 10
Posts: 285
Credit: 320378898
RAC: 0
Topic 195904

I have a dual boot Win 7 and Ubuntu 11.04 system.

Windows wants the CMOS clock set in local time (UTC-8 w/DST) and Linux wants UTC.

Linux at least does a time sync on boot but Windows just pretends I moved to London.

Booting in Linux then Windows and then manually doing an Internet Time Update cause BOINC to give the following messages:

8/18/2011 3:45:04 PM | | System clock was turned backwards; clearing timeouts

And then doesn't do anything for a while. It takes a while to even get a project listed to do a manual update.

Does anyone have a better way to deal with this than put Windows on UTC all the time?

Joe

Gundolf Jahn
Gundolf Jahn
Joined: 1 Mar 05
Posts: 1079
Credit: 341280
RAC: 0

Windows vs Linux Clock causing problems

Shut down BOINC client before turning the clock backward or don't autostart BOINC to begin with and start it manually after adjusting the clock.

Gruß,
Gundolf

Computer sind nicht alles im Leben. (Kleiner Scherz)

Jeroen
Jeroen
Joined: 25 Nov 05
Posts: 379
Credit: 740030628
RAC: 0

How about switching Linux to

How about switching Linux to use your current timezone?

You can copy a timezone file in /usr/share/zoneinfo to /etc/localtime. You can also create a link to the timezone of your choosing. I would backup the localtime file first.

joe areeda
joe areeda
Joined: 13 Dec 10
Posts: 285
Credit: 320378898
RAC: 0

RE: Shut down BOINC client

Quote:

Shut down BOINC client before turning the clock backward or don't autostart BOINC to begin with and start it manually after adjusting the clock.

Gruß,
Gundolf


thanks that should work. It is a big difference I wasn't sure if the checkpointed tasks would detect it also.

Joe

joe areeda
joe areeda
Joined: 13 Dec 10
Posts: 285
Credit: 320378898
RAC: 0

RE: How about switching

Quote:

How about switching Linux to use your current timezone?

You can copy a timezone file in /usr/share/zoneinfo to /etc/localtime. You can also create a link to the timezone of your choosing. I would backup the localtime file first.


I do have Linux in the proper timezone.

The issue is what gets stored in the system clock that is only used on reboot.

Linux expects it to be UTC, Windows the local time zone. As far as I can tell there's no way to convince either one of them otherwise.

I tried some registry hacks I found on the web in Windows and they did not work well (I'm being nice) some things got it others didn't worse possible scenario.

If I don't pay attention all the mail I send out of Windows is timestamped in the future.

Maybe the easiest way to deal with this is to move to London or Chad.

mickydl*
mickydl*
Joined: 7 Oct 08
Posts: 39
Credit: 200374822
RAC: 0

RE: The issue is what gets

Quote:


The issue is what gets stored in the system clock that is only used on reboot.

Linux expects it to be UTC, Windows the local time zone. As far as I can tell there's no way to convince either one of them otherwise.

That's not entirely true. While Windows doesn't leave you any other choice but to set the RTC to local time, Linux does give you the choice.

This HowTo might help you.

mickydl*

joe areeda
joe areeda
Joined: 13 Dec 10
Posts: 285
Credit: 320378898
RAC: 0

RE: That's not entirely

Quote:

That's not entirely true. While Windows doesn't leave you any other choice but to set the RTC to local time, Linux does give you the choice.

This HowTo might help you.

mickydl*


Thanks! I'll read that whole thing as soon as I can. I may be back.

Joe

joe areeda
joe areeda
Joined: 13 Dec 10
Posts: 285
Credit: 320378898
RAC: 0

I believe I found a decent

I believe I found a decent solution to this, at least for Win7.

It's explained in this blog in detail.

By default time synchronization is done weekly. The idea is to add another trigger to do it at startup.

Works well.

Joe

Fred J. Verster
Fred J. Verster
Joined: 27 Apr 08
Posts: 118
Credit: 22451438
RAC: 0

Well, thanks, I'm running the

Well, thanks, I'm running the same combo of OSses, Windows 7 and UBUNTU 11.4, (2 older EDUBUNTU) all 64BIT.
I ran UBUNTU the last month, now Windows 7 and installed BOINC 6.10.60.
Also noticed a 1 hour time difference, but after some addional safety Windows 7
updates, made it work OK, now.
But I'll watch it when I reBOOT UBUNTU and Windows 7, again.

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.