regedit1

Fixing Time Sync issue with OSX/Windows & Linux

Most of us do dual boots with our hackintosh. Windows and OSX , but one thing we realise is that when you fire up Windows. You realise the the clock is out of sync and you decide to let windows automatically sync with time servers and then it gets fixed. You said that it could be a mistake and you carried on with your work . The following day when you boot up to OSX , you’ve noticed something odd – the clock is out of sync. Its like a demon that is changing time. You decide to fix it up the same way and so the cycle continues. You’ve tried everything that you could to get these two OSes clock to work in harmony. Well , fear not – Today , I’ll show you couple of ways to fix this issue. From the straight forward method to the complicated method. For each methods , I’ve described here – there are both advantages and disadvantages. Don’t worry , I’ll list them all. If you’re curious why time gets out of sync , then stick around and read the whole thing

(more after the jump)

The easiest method – Boot Camp Method

Advantages :-

  • Well it just works
  • Its suitable for brain-dead retards (nah I am just joking , what I meant to say is that umm its suitable for the less tech-savvy)
  • Works with Windows XP , Windows 7, Windows Vista and just about any Boot Camp supported OS by Apple !
  • Makes you feel like having a Mac :P (you could proudly say “Hey peeps , I got Boot Camp running on a Hack”)
  • Gives you the ability to read your Mac partition while in Windows (thanks Mushishi)

Disadvantages :-

  • Increases Boot Up Time – On hacks for what-so-ever reason it pauses for a while. I was told that it looks for EFI support , thus the reason why it pauses
  • Bloatware (it installs other Apple Boot Camp softwares such as Keyboard support , Apple mouse support). Some folks hate it very much

Method :-

1. Insert your MacOS X Installation disc in Windows. When autorun prompts , simply run the Boot Camp installation wizard. If it says that its not a Mac or something , run setup.exe manually

For 64-bit Users (Windows 7/Vista) – Here is a great tutorial on how to install Boot Camp drivers on 64-bit PCs. Generally if you run the installer , it says that its not supported. However this guy has managed to find a trick on how you can get it to install

Reboot and everything should be fixed and the time should show up correctly on both of the systems


The Method for Adventurous – Registry Fix

Advantages :-

  • Its clean as in no additional programs are needed to get it working
  • It extends your knowledge of Windows Registry
  • Chuck Norris prefers this method :P

Disadvantages :-

  • It only works for Windows 7 & Vista and not for Windows XP
  • Messing with Registry can be a tedious task for some especially those who are not comfortable with messing stuffs such as this

1. Firstly fire up Registry Editor by typing regedit.exe  in Windows 7/Vista Search Bar. If you have UAC enabled , you should get a prompt. Simply hit yes.

2. Now Navigate to this key , to do so simply keep on double clicking the folders till you come across to this

HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\TimeZoneInformation

regedit1

Windows Registry Editor Screen of TimeZoneInformation

If you are not sure , please click on the picture so that you can have a larger view of it.

3. Right click on the empty space right below  ‘TimeZoneKeyName’ and create a new Dword (32-bit). On 32-bit versions of Windows 7/Vista , you will only see D-WORD .

4. Rename the new DWORD as “RealTimeIsUniversal” (without quotes and its case-sensitive) .

5. Double click on the new DWORD and change its value data  “0″ (thats a zero) to “1″ (one) . Its in hexadecimal

6.Save it all. Reboot to MacOS X , set the time properly and now boot back to Windows. You should notice the time should be alrighty

Fixing it in Linux (Thanks to Apocolipse)

Oh, and side note to mention, for linux users (who’s distro defaults to Local time not UTC, like ubuntu, for windows compatibility) you can also edit /etc/conf.d/clock CLOCK=”UTC”

Read the comments below. There are few suggestions (alternative methods) posted by Mac and apocolipse. Its a must read

The Reason why Time gets out of sync

No its not because of your alarm clock , no not jet lag either. Its because OSX uses UTC (aka GMT +0) to store its time. When you set your time zone for instance to +8 GMT (Singapore) , it stores the time with reference to UTC. When you boot to windows , the time that you’re actually seeing is UTC. But if Windows sets the time , it makes OSX all cranky. So the only way (well one of the ways) to fix it is in Windows. Another thing to note is that your BIOS clock will be in UTC and not in your local time :P (but dont worry about it , both of the oses will understand that your BIOS clock is UTC)

49 thoughts on “Fixing Time Sync issue with OSX/Windows & Linux”

  1. Great write-up prasys i’ve been looking for this fix for a minute now i can change my time back from hawaii to my time zone thanks

  2. TimeSync is the best for me. You just need to install it on your HackIntosh and your time will be auto sync in all operating system you install on the same machine. I have quad boot, XP/WIN7/LEO/SNOw

  3. My time is GMT+3.

    So I use Windows XP and Windows 7 without any change: set my time GTM+3 country and use built-in sync.

    But in MacOS I need to choose Iceland time and not to use any sync, in this case time is always true in any reboot.

    So anybody can choose country in MacOS that will match your time and you willn’t get any problem.

  4. The reason why I dont use OSX TimeSync patch is that it makes it not vanilla. I prefer to use Apple’s method of fixing things in Windows. It keeps my OSX vanilla and not to mention I get to have the correct time zones in all of my OSes.

  5. Prasys, the second method can easily be done in one step, open up cmd.exe and copy/paste this string (without quotes) “Reg add HKLM\SYSTEM\CurrentControlSet\Control\TimeZoneInfo rmation /v RealTimeIsUniversal /t REG_DWORD /d 1″

  6. Oh, and side note to mention, for linux users (who’s distro defaults to Local time not UTC, like ubuntu, for windows compatibility) you can also edit /etc/conf.d/clock CLOCK=”UTC”

    Do Windows + Linux with UTC fixes and you’ll be golden

  7. Hi pradesh, i have try the last cham rc5pre6 from insanely with graph enab for gma950 on msi u100. Which files can i delete? and the efi that i have in the com.apple?
    Thanks

  8. Here is what I use for WinXP. A simple batch file that runs at every boot. What it does is to try to sync with the NTP server you set in your date and time preferences. As it may take a couple of seconds before your network is up there is a 5 s delay to retry the timesync for 12 times or in other words 1 minute before it will automatically close (the original script was not made by me but I found somewhere I can’t remember; thanks to the unknown author).

    Simply put this in a text file and call it timesync.bat.

    @echo off
    REM *** Retry for up to 1 minutes (12 retries @ 5 seconds each)
    set retryCount=0

    :SyncStart
    if %retryCount == 12 goto SyncEnd
    set /A retryCount=retryCount + 1

    REM *** Resync the system clock
    w32tm /resync
    if errorlevel 1 goto SyncDelay
    if errorlevel 0 goto SyncEnd

    :SyncDelay
    REM *** If unsuccessful, delay 5 seconds, then retry
    choice /n /t:y,5>nul
    goto SyncStart

    :SyncEnd
    echo Time Sync successful

    Save the file in your c:\windows directory and add the following autorun key to your registry so it runs at machine startup:

    Windows Registry Editor Version 5.00

    [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run]
    “TimeSync”=”C:\\WINDOWS\\timesync.bat”

    Alternatively you can also create a shortcut in your startup menu.

  9. Mac, pardon me saying but that is a completely retarded thing to do/run. The TimeSync Issue is SOLELY caused by the fact that OS X see’s the BIOS Clock time as UTC (set to GMT +0), Whereas Windows expects the time to be LOCAL TIME (set to your geographic time offset). OS X syncs time server and sets bios time accordingly, then windows boots, and it gets confused. All you need to do is copy/paste
    “Reg add HKLM\SYSTEM\CurrentControlSet\Control\TimeZoneInfo rmation /v RealTimeIsUniversal /t REG_DWORD /d 1?
    in cmd.exe, which will add the key to tell windows that the BIOS Clock is UNIVERSAL (GMT +0) time not LOCAL time. Why waste even 5-10secs with this bash script, or bootcamp’s timesync.exe, when both can be avoided by telling windows what time it is…once….and never have to wait at boot again….COPY PASTE ITS THAT EASY

  10. Oh forgot to add, that reg key works for ALL WINDOWS, XP and forward, hell works with winNT 4.1 and Win2k as well

  11. Cool beans Apocalipse, that’s a great tip. I just dumped my script. Actually I was looking for something like this for ages but could not find, also here it said it would not work with XP. Thanks!

  12. I apologize to all, the string is “Reg add HKLM\SYSTEM\CurrentControlSet\Control\TimeZoneInformation /v RealTimeIsUniversal /t REG_DWORD /d 1?

    Sorry for the space in “TimeZoneInformation” :P should be easily caught but if not, that string in quotes is the proper one.

  13. Easiest way:
    There is a fix by Apple for this – it’s part of the Boot Camp utilities called Appletime.exe. You can find it for download if you just search.

    Synaesthesia

  14. on a side note on the side note,in ubuntu 11.04 i386, you have to edit /etc/default/rcS (set UTC=yes) :razz:

  15. I know it’s an old post,.just wanna make an update, in case somebody bump into this post:

    I use the BIOS RTC wake-up, set the bios to use UTC (Mac Behaviour/Reg edit) is not an option for me,.it’s tedious to add or subtract clock just to make it right to the local time.
    Besides,..the reg method is not reliable is a leftover from windows NT days. In time it will be not sync again/behave unpredictable. The reliable method is to make changes in Mac, not on the Windows side.

    Here’s how :
    http://bit.ly/JFsfdo

    For those who lazy write a script:
    http://bit.ly/Kn9W0e

  16. how to fix this problem in hackintosh…..bcz i dont have retail os x disk….i m having hazards SL 10.6.6 DVD …..plz help….provide solution for hackintosh without retail disk…..

  17. Pingback: Clock issue
  18. I have been exploring for a little bit for any high-quality articles
    or weblog posts in this kind of area . Exploring in Yahoo I ultimately stumbled upon this web site.
    Studying this info So i’m glad to convey that I have an incredibly just right uncanny
    feeling I discovered exactly what I needed. I so much certainly will make sure to don?t
    disregard this website and provides it a look regularly.
    seo marketing services llc´s last blog post ..seo marketing services llc

  19. Great goods from you, man. I’ve understand your stuff previous to and you are just extremely fantastic.

    I actually like what you have acquired here, certainly like what you are saying and
    the way in which you say it. You make it entertaining and you still take care of to keep it smart.
    I can’t wait to read much more from you. This is really
    a great website.

    my web site :: fifa 14 gratuit pc
    fifa 14 gratuit pc´s last blog post ..fifa 14 gratuit pc

  20. What do you think about using the meta description on your website?
    I read told me to not bother with them a while a go as they help competitors
    Bookmarked your site, should help me keep up to date with
    your posts!

    my homepage – seo
    seo´s last blog post ..seo

  21. The great thing about Brandy’s camp is that the
    children try both, but in a safe environment.
    Flyers and posters have been placed on the east side and downtown areas
    of Spartanburg. One of the best ways to do this is to pick
    up key points as a person speaks and remember them because you share a
    similar experience or have knowledge about the subject.
    modern wood furniture plans´s last blog post ..modern wood furniture plans

  22. Hello friends, how is everything, and what you desire to say concerning this
    post, in my view its really amazing in favor of me.
    Marcel´s last blog post ..Marcel

  23. It’s hard to find your posts in google. I found it on 22 spot, you should build quality backlinks , it will help you
    to increase traffic. I know how to help you, just search in google – k2
    seo tricks
    Kathryn´s last blog post ..Kathryn

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

CommentLuv badge