Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 10-18-2007, 11:57 AM   #1
Registered: Apr 2007
Posts: 121

Rep: Reputation: 15
Dual Boot Clock Off

My computer's clock is correct when on linux, but off by 5 hours when on Windows. If I try to switch the windows clock to the correct time, it changes the linux clock to the wrong time. Any suggestions? Thanks.
Old 10-18-2007, 11:59 AM   #2
Senior Member
Registered: Dec 2005
Location: London, ON, Canada
Distribution: Arch, Ubuntu, Slackware, OpenBSD, FreeBSD
Posts: 1,853

Rep: Reputation: 65
I have the same problem.

If I set the time in Debian, it changes the time in Windows and Gentoo. If I set the time in Gentoo, it changes the time in the other two. Likewise with Windows.

I would really like to find a resolution to this, too.
Old 10-18-2007, 12:32 PM   #3
LQ Newbie
Registered: Oct 2007
Location: Hungary, Budapest
Distribution: Gentoo
Posts: 17

Rep: Reputation: 0
Have you tried changing timezone?
Old 10-18-2007, 01:12 PM   #4
LQ Guru
Registered: Aug 2003
Distribution: CentOS, OS X
Posts: 5,131

Rep: Reputation: Disabled
The problem is, as BB_DaKraxor mentioned, about timezones.

EDIT: shortening the post a can read more about timezones and different time representations at Wikipedia for example, to get the grasp. Shortly: there are several ways to display time, and several ways to define time(s). Nowadays UTC is the way to go; used to be GMT (Greenwich Mean Time). But here it goes:

Your machine has a clock that it tries to keep up to the time. It doesn't know what time it is, it just adds seconds, minutes or whatever time units you want to call them, to the time it was originally set to. Your operating system has been coded to understand that instead of having just one time on Earth, this ball is actually divided into timezones, so that everywhere there can be (almost) midday at 12.00. Operating systems try to be smart, and instead of forcing you to set your machine clock to the localtime, they offer you the opportunity to have your machine clock at some universal time, and then calculate your local time depending on your location (adding some amount of hours to the machine clock's time, for example). This is OK as long as every operating system has the same assumption of your machine's clock "format" (if it's local time or not); if one OS thinks it's in local time and another OS thinks it's not, the other OS displays the machine's time as localtime, and the other does some calculations with it and then displays the time it thinks is localtime - and this is why one OS clock displays different time than the other.

Solution: decide if you want your macine's clock to display local time or not (= universal time of some kind, it's your decicion). Then just tell each of your operating systems which time it displays, and there you go..

The point in having your OS calculate your local time from the location you said you live in, and from your machine clock's "universal time", is that you can transfer your machine all around the world (if you like) and just select a new timezone to get the correct time, instead of always changing the machine clock. It also means that if you happen to deal with several timezones (remote stuff or something), a clever software could always show you the right localtime! But for the average Joe it sometimes just gives the wrong time on some operating systems..

Last edited by b0uncer; 10-18-2007 at 01:21 PM.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Clock skew in dual boot system white_hound SUSE / openSUSE 1 07-27-2006 04:06 PM
High clock freq. single core or lower clock freq, dual core? ferentix Linux - General 3 04-27-2006 02:35 PM
dual boot messes with clock linuxhippy Fedora 3 07-31-2005 10:08 PM
Fedora Core 3 Dual Boot, Dual Hard drives, Grub Boot Loader Denali03 Linux - Newbie 1 03-04-2005 01:44 PM
system clock on dual boot luap Linux - General 7 03-17-2003 10:58 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:55 AM.

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