Technical Anshu
Tutorials Blog
🐧 Dual Boot Fix

Windows Clock Shows Wrong Time After Ubuntu Dual Boot Fix

Boot Ubuntu for an hour, return to Windows, and the clock is wrong by exactly your timezone offset. Nothing is broken and no battery is dying — the two systems simply disagree about what the motherboard clock means. One command settles the argument permanently.

✍️ Technical Anshu🐧 Ubuntu and Windows⏱️ 6 minute read
🎥 Watch the video — the dual boot setup this first week problem belongs to, shown live

Your PC has one hardware clock on the motherboard, and both systems read it at boot. Ubuntu treats that clock as UTC (world time) and adds your timezone for display. Windows treats the same clock as your local time. So each system, on shutting down, writes the time back in its own language — and the other system wakes up confused by exactly the offset, five and a half hours for India. Here are both fixes; you only need one.

Terminal — Ubuntu — timedatectl before the fix
$ timedatectl Local time: Sun 2026-10-25 10:30:04 IST Universal time: Sun 2026-10-25 05:00:04 UTC RTC time: Sun 2026-10-25 05:00:04 Time zone: Asia/Kolkata (IST, +0530) RTC in local TZ: no
The diagnosis in one screen — the hardware clock (RTC) holds UTC, which is why Windows, expecting local time, shows 05:00 instead of 10:30. Times are examples.
1

The Ubuntu Side Fix — One Command

The simplest settlement is to teach Ubuntu to speak Windows' language: keep the hardware clock in local time. It is a single command, effective immediately.

  1. Open a terminal in Ubuntu
  2. Run timedatectl set-local-rtc 1 --adjust-system-clock
  3. Check with timedatectl — the last line now reads RTC in local TZ: yes
  4. Reboot into Windows and set the clock correctly once; it stays correct from then on

Ubuntu will warn that local time in the hardware clock is not fully supported. For a dual boot machine that warning is acceptable and widely lived with — the warning exists because UTC is the cleaner design, not because the local setting breaks anything in daily use.

2

What Changes After the Fix

With the hardware clock in local time, both systems now read and write the same meaning. Ubuntu still displays everything correctly — it simply stops converting the hardware clock.

  1. Windows boots showing the right time without syncing
  2. Ubuntu boots showing the right time too
  3. The tug of war at every shutdown is over

One honest caveat: daylight saving changes are now handled by whichever system notices first, which in practice means Windows. In countries without daylight saving — India included — even that caveat never shows up.

3

The Windows Side Alternative — Keep Ubuntu on UTC

If you prefer Ubuntu's cleaner UTC design, Windows can be taught the reverse: read the hardware clock as UTC. It is a registry value, set in one admin command.

  1. Open Command Prompt as administrator in Windows
  2. Run reg add "HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\TimeZoneInformation" /v RealTimeIsUniversal /d 1 /t REG_DWORD /f
  3. Restart Windows and set the time correctly once
  4. To undo it later, delete the value with the same path and /v RealTimeIsUniversal /f replaced by the delete form — or set it to 0

This route is less commonly used because a few Windows behaviours — some scheduled tasks and older software — assume the local clock. It works, but the Ubuntu-side command is the fix most dual boot users settle on.

4

Do Not Use Both Fixes at Once

The trap to avoid: applying both. If Ubuntu keeps local time and Windows reads the clock as UTC, the disagreement returns in mirror image and the clock is wrong again — now confusing everyone who tries to help you.

  1. Pick one side, apply one fix
  2. If you switch sides later, undo the first fix before applying the second
  3. After any change, boot each system once and check the time in both

Internet time sync in both systems quietly corrects small drift, but it cannot fix this — the offset is not drift, it is definition, and it returns at every boot until one system changes its definition.

🔴 Wrong by exactly your timezone offset means it is this issue — five and a half hours in India. Wrong by a few minutes is ordinary clock drift, and wrong by random amounts after the PC sat unplugged for weeks points at the small motherboard battery instead. Three different problems, three different fixes.

🎥 Watch the Dual Boot Video

The clock fix is a first week polish on the full dual boot setup — watch the complete installation in the video.

▶️ Watch Full Video
❓ Frequently Asked Questions

Why is my Windows clock exactly five and a half hours behind after using Ubuntu

Because Ubuntu keeps the hardware clock on UTC and writes that back at shutdown, while Windows expects the same clock to hold Indian local time — the difference is exactly the IST offset. The timedatectl command on this page makes Ubuntu keep local time instead, and the problem ends permanently.

Which fix is better, the Ubuntu command or the Windows registry value

For most dual boot users, the Ubuntu command. It is one line, instantly reversible, and the setup Windows was designed around. The registry value keeps Ubuntu on the cleaner UTC design and also works, but a few Windows habits assume a local hardware clock, so it is the second choice.

My clock is wrong by a few minutes only, is it the same problem

No — minutes of drift are normal hardware clock drift, and both systems correct it automatically when they sync time over the internet. The dual boot problem is always the full timezone offset, appearing right after switching systems. Random large errors after the PC was unplugged for a long time point to the motherboard battery instead.

This guide is based on the Technical Anshu video linked above • Stuck on a step? Ask in the video comments — you will get a reply 🙏