LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Windows Time Changes (https://www.linuxquestions.org/questions/linux-newbie-8/windows-time-changes-4175506889/)

Train 06-03-2014 08:59 AM

Windows Time Changes
 
On one of my computers, I have Windows 7 and Linux.

When I boot into Linux and then reboot (later on) into Windows 7, my time in Windows 7 changes to around 6 hours in the future.


Is this a problem with Windows, or something else?

Doc CPU 06-03-2014 09:22 AM

Hi there,

Quote:

Originally Posted by Train (Post 5181546)
On one of my computers, I have Windows 7 and Linux.
When I boot into Linux and then reboot (later on) into Windows 7, my time in Windows 7 changes to around 6 hours in the future.

so I guess your location is 90° west of the Greenwich meridian, perhaps somewhere in the eastern third of the USA?
The point is that Windows assumes the real-time-clock to be running on local time, while Linux usually has it on UTC.

However, I'm dimly aware that you can change this behavior in Linux, so that it treats the clock the same way as Windows.

[X] Doc CPU

TroN-0074 06-03-2014 10:24 AM

I think it is because your Linux is set up to UTC time and Windows is set up to Local time.

Make them match and you wouldnt have that problem any more
If you want Linux to be in the local time you can try as root

Quote:

Code:

date --set "5 Aug 2012 12:54 IST"
Obviously in the above command you must set your date, time and time zone correctly.

Now as root, synchronize the hardware clock to the current system time as local time.

Code:

hwclock --systohc --localtime

That is from our friends at the Slackware site, in your distro it might work the same way or you have to search the topic for your distro.

maples 06-04-2014 09:15 PM

I recently had the same problem with my Win8 laptop. During the install, I set the hardware clock to localtime. Apparently, though, Windows 8 keeps the hardware clock in UTC. So if setting the clock to local time doesn't fix it, try setting it to utc.


All times are GMT -5. The time now is 06:02 AM.