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:
Code:
#!/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:
Code:
chmod +x /sbin/localtime-toggle
3. Create new file /System/Library/LaunchDaemons/org.osx86.localtime-toggle.plist with the following contents:
Code:
<?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.
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.