Home » Questions » Computers [ Ask a new question ]

How can I sync the time on my dual-boot setup with Windows and (Fedora) Linux?

How can I sync the time on my dual-boot setup with Windows and (Fedora) Linux?

I currently have a dual-boot setup with Windows Vista and Fedora Linux. The time between the two installations have a 6 hour gap. When I try to set the time of one OS to match the other one, the other OS adjusts its time as well so they never sync. How can I sync their times?

Asked by: Guest | Views: 311
Total answers/comments: 2
bert [Entry]

"I presume you live in a time zone with a 6-hour offset from UTC (GMT), such as Central Standard Time in the USA is GMT-6. Perhaps you live in Sri Lanka, where the offset is 6 hours the other side of GMT, and the time zone is GMT+6.

Both operating systems need to agree whether the system clock is set to local time or UTC.

This is probably most easily accomplished by telling Fedora to use local time. Windows is generally much harder convince to use UTC.

As suggested on a fedoraforumdotorg thread, at a Fedora root shell, try:

hwclock --localtime

This should tell Fedora to use treat the system clock as containing the local time, the same as Windows does by default. The operating systems should now agree on the time."
bert [Entry]

"Yes you should run NTP but not for the reasons stated herein, that will only fix the symptom not the cause. On Linux (as root) run this:
hwclock --localtime --systohc

No need to regedit under Windows, no need to reboot."