View Full Version : SOLUTION for Time/Clock issue between Windows Vista, Mac OS X, & Sabayon Linux
WinLinMac01
04-15-2008, 11:33 PM
I now have a tri-boot configuration working between Windows Vista, Mac OS X, and Sabayon Linux. However, it appears that in each O/S the time would appears differently from each other. Can somebody please suggest me what to do to correct this issue? I confirmed to make sure that it wasn't a CMOS problem, and all looks fine. Thanks a lot.
^fire^
04-15-2008, 11:39 PM
yes i have the same problem, everytime i boot into osX the time is 2 hours after org time and after i boot into XP the time is 2 hrs before :)
its kinda anoying to set the time up everytime i changed the os :)
it looks like osx is setting up the hardwaretime in (BIOS) and XP (microsoft) is adding some hours
WinLinMac01
04-15-2008, 11:42 PM
Lol, any way there is a solution for this? I'm currently experimenting with time synchronization. Hopefully, I can devise some sought of solution for this ridiculous issue. =) But if anyone knows better, please post your solution here as well. Thanks.
^fire^:yes i have the same problem, everytime i boot into osX the time is 2 hours after org time and after i boot into XP the time is 2 hrs before :)
its kinda anoying to set the time up everytime i changed the os :)
it looks like osx is setting up the hardwaretime in (BIOS) and XP (microsoft) is adding some hours
I had a fix for this for Tiger but now I'm in the same boat. Don't worry, I'm sure there's a fix floating around somewhere so it's just a matter of time lads.
R0GUE
04-16-2008, 12:35 AM
That too used to happen to me back with Tiger. Try this (http://forum.insanelymac.com/index.php?showtopic=47246) and let us know if it still works.
Do you have network server time sync enabled on all OS's?
^fire^
04-16-2008, 12:40 AM
R0GUE:That too used to happen to me back with Tiger. Try this (http://forum.insanelymac.com/index.php?showtopic=47246) and let us know if it still works.
Do you have network server time sync enabled on all OS's?
yes in my case i have, but it needs sometime befor the right time is set back up (windows about some hours, osx about few minutes)
thx for that hint i will try it later if my osx is running again :)
WinLinMac01
04-16-2008, 02:08 AM
Thanks, hope this works with Sabayon Linux as well. =)
WinLinMac01
04-16-2008, 06:27 AM
Okay, I was able to successfully synchronize my times in Windows Vista and Mac OS X. Now that that is settled, there is one more issue. Since I am also using Sabayon Linux, the time changes in that O/S after I use Mac OS X. I noticed this occurs particularly in my BIOS which made the time Sabayon change. However, after I tried Time syncronization with Sabayon Linux, it appears that the O/S depends on the system BIOS regardless whether or not I enable time synchronization. I see a different time in Sabayon Linux (this doesn't occur if I have a dual-boot setup between Vista and Linux). I logged out of Mac OS X and upon going in my BIOS I clearly can see a different time in my BIOS. I once tried changing the time to the current time, but after going into Mac OS X and restarting the system again, the BIOS moves the time four hours ahead of the actual time. If anyone has a working fix for Linux, that would be greatly appreciated. Thanks a lot. =)
However, I did find a solution, if someone can help me create the appropriate packages, that would be great-
Leopard: Mac OS X Responsibility
In Leopard, /etc/rc.local, /etc/rc.shutdown.local and StartupItems startup/shutdown mechanisms are deprecated.
Instead, the following Leopard-friendly solution will toggle the clock between local time and UTC at start-up and shut-down times. You will need Administrator privileges when performing this procedure.
1. Create new file /sbin/localtime-toggle with the following contents:
#!/bin/sh
to_utc() {
echo "localtime-toggle: Toggling to UTC."
date `date -u +%m%d%H%M%Y`
}
to_localtime() {
echo "localtime-toggle: Toggling to localtime."
date -u `date +%m%d%H%M%Y`
}
trap 'to_localtime; exit' term
to_utc
{ while true; do sleep 86400; done; } &
wait
2. Ensure that localtime-toggle is executable:
chmod +x /sbin/localtime-toggle
3. Create new file /System/Library/LaunchDaemons/org.osx86.localtime-toggle.plist with the following contents:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>org.osx86.localtime-toggle</string>
<key>Program</key>
<string>/sbin/localtime-toggle</string>
<key>KeepAlive</key>
<true/>
<key>RunAtLoad</key>
<true/>
<key>HopefullyExitsFirst</key>
<true/>
</dict>
</plist>
4. Reboot. :cool:
At this point, your computer's clock should correctly be set to UTC as Leopard boots, and reset back to local time as Leopard shuts down.
zuz242
04-16-2008, 12:07 PM
i got my system syncronized between osx, xp and vista by using the correct
time and timezone in windows and adjusting the timezone correspondingly
in osx. just to be on the safe side did i disble online syncronisation.
other fixes like reghacks and appletime.exe did not work as desired.
R0GUE:That too used to happen to me back with Tiger. Try this (http://forum.insanelymac.com/index.php?showtopic=47246) and let us know if it still works.
Do you have network server time sync enabled on all OS's?
Still seems to work, thx buddy!
Someone should make this a sticky!!!
WinLinMac01
04-16-2008, 03:51 PM
Question: Why is Mac OS X still pushing my time to fours after I restart the system? On Mac OS X, the time is fine, but when I restart, the BIOS shows the currrent time four hours ahead. Time synchronization is setup just fine in both operating systems, but Sabayon Linux is still giving me the pain. I tried Time Synchronization in Sabayon, but it appears it still depends on my system BIOS. Can somebody guide me through for the following link in the Leopard section? Thanks. Thats would be high appreciated. The script to execute is also above this thread, where I posted earlier, but it appears everyone missed that. =)--
http://wiki.osx86project.org/wiki/index.php/Tips_And_Tricks#Use_Localtime_instead_of_Universal _for_RTC
Thank you all once again.
WinLinMac01
04-16-2008, 06:29 PM
Help would be very appreciate in addressing the commands I posted above. Thanks, =)
WinLinMac01
04-16-2008, 11:54 PM
The commands don't work for me because permissions are denied. Any reason why? Please let me know, thanks.
ka911
04-17-2008, 12:49 AM
ok here how I fix my windows
0. set the right time first
1. open Notepad
2. then type
w32tm /config /manualpeerlist:tick.usno.navy.mil /syncfromflags:MANUAL
w32tm /config /update
w32tm /resync
3. save it as "synctime.bat"
4. then run it!
PS: I'm running my PC as server for that I need to run the command. I don't know if it will work for every one or not.
WinLinMac01
04-17-2008, 02:46 AM
Hey thanks, but I need to fix this in Mac OS X instead by having the O/S use local time instead, because I am using Sabayon Linux as well. If you have any idea how I can execute the script in the above posts, that would be VERY appreciated. Thank you. =)
ka911:ok here how I fix my windows
0. set the right time first
1. open Notepad
2. then type
w32tm /config /manualpeerlist:tick.usno.navy.mil /syncfromflags:MANUAL
w32tm /config /update
w32tm /resync
3. save it as "synctime.bat"
4. then run it!
PS: I'm running my PC as server for that I need to run the command. I don't know if it will work for every one or not.
WinLinMac01
04-17-2008, 06:31 AM
I hoping that my issue has been resolved after working with Zephyroth. I will update this thread in a few hours after I confirm everything is working. No need to time synchronize. There is a trick for Mac OS X. Will update and confirm. Thanks a lot! =)
WinLinMac01
04-22-2008, 09:39 PM
Okay with the script that is shown above, Zephyroth was kind enough to prepare a installer for this, and this seems to resolve the time issue. Please test it for yourself and let me know how it goes. This is the real deal. I have accurate time readings on every O/S in my system. - CHEERS! =))
WinLinMac01
04-23-2008, 05:43 PM
this really works for those that have been asking for solution. =)
WinLinMac01
04-24-2008, 07:06 PM
I hope this solution satisfies everyone who needed it. =)) - Cheers!
spine6
10-28-2008, 06:15 PM
Where is the installer made by Zephyroth??
beingsneaky
04-01-2009, 06:23 AM
ok i grab the localtime-toggle and LaunchDaemons from iPC osx86 DVD installed it on my osx86 install, and now it gets only so far in booting up and reboots. i removed the localtime-toggle and LaunchDaemons with MacDrive did permision fix and disk repair with DVD but its still wil not boot up fully HELP please.
nyjets12
01-21-2011, 07:31 PM
Okay with the script that is shown above, Zephyroth was kind enough to prepare a installer for this, and this seems to resolve the time issue. Please test it for yourself and let me know how it goes. This is the real deal. I have accurate time readings on every O/S in my system. - CHEERS! =))
Hey, would you please share the script from Zeph.. thanks!