Technical Anshu
Tutorials Blog
🕐 Ubuntu Time Fix

Ubuntu Wrong Time Fix Find Which Clock Is Lying and Fix It for Good

Your Ubuntu clock is wrong again - maybe by minutes, maybe by exactly five and a half hours. The mistake most people make is fixing the clock face instead of the cause. There are two clocks in your PC, and this guide finds out which one is lying before touching a single setting.

✍️ Technical Anshu🐧 Ubuntu⏱️ 7 minute read
🎥 Watch the full video - every Ubuntu time fix shown live, step by step

Every computer keeps time in two places. The RTC (real-time clock) is a small hardware clock on the motherboard that keeps ticking on battery power while the PC is off. The system clock is what Ubuntu shows you while it runs, and it is corrected over the internet by a sync service called NTP. At boot, Ubuntu reads the RTC and builds the system clock from it. So a wrong clock means one of three things: the RTC held the wrong value, Ubuntu read it with the wrong assumption, or the internet correction never happened. One command separates all three.

Terminal - what a healthy timedatectl report looks like
$ timedatectl Local time: Sun 2026-10-25 10:14:03 IST Universal time: Sun 2026-10-25 04:44:03 UTC RTC time: Sun 2026-10-25 04:44:03 Time zone: Asia/Kolkata (IST, +0530) System clock synchronized: yes NTP service: active RTC in local TZ: no
A healthy report. RTC time matches Universal time because this machine keeps its hardware clock in UTC (RTC in local TZ: no), and the synchronized line says yes. Example values - compare your own screen line by line.
1

Read timedatectl Before You Change Anything

Open a terminal and run timedatectl. You do not need sudo just to look. Seven lines appear; six of them matter:

  1. Local time - the time on your clock face, after the time zone conversion
  2. Universal time - the same moment in UTC. This is the number that must be right in itself
  3. RTC time - what the hardware clock on the motherboard currently holds
  4. Time zone - the zone Ubuntu converts into, for example Asia/Kolkata (IST, +0530)
  5. System clock synchronized - yes means internet time sync has succeeded at least once this boot
  6. RTC in local TZ - no means Ubuntu assumes the RTC holds UTC. This one line is the whole dual-boot story

Write down what your screen shows before changing anything. Two minutes of reading here saves an hour of random fixes.

2

Match the Pattern to the Cause

Wrong time is not one problem. The size and shape of the error names the culprit almost every time:

  1. Wrong by exactly your zone offset (5 hours 30 minutes in India) and it flips when you boot the other OS - a dual-boot RTC fight. Windows and Ubuntu disagree about what the hardware clock means
  2. Wrong by minutes, growing slowly over weeks - sync is off or failing, or the RTC itself drifts. Check the synchronized line
  3. Correct while the PC runs, wrong again after every shutdown - the RTC is losing or misreading time while powered off. On old hardware that is the CMOS battery
  4. Right zone name on screen, wrong time anyway - the zone is a display setting, not the time itself. Your Universal time line will be wrong too
  5. Wrong only inside a virtual machine, jumping after restore or resume - the VM takes time from its host and from snapshots, not just from NTP

Each pattern has its own fix in the guides linked from this page. Fixing the wrong pattern is why the problem keeps coming back.

3

Fix One - Make Sure Internet Sync Is Actually On

Most single-boot Ubuntu machines heal themselves if sync is allowed to run. Check it is on:

  1. Run timedatectl set-ntp true (it will ask for your password)
  2. Or in the GUI: Settings then Date & Time, and turn on Automatic Date & Time
  3. Wait a minute on a working internet connection, then run timedatectl again
  4. The line System clock synchronized should now say yes, and the time should step to the correct value

If it stays on no, the sync service or the network is blocking it - that is a separate fault with its own guide, because the fix is about the service and UDP port 123, not about the clock.

4

Fix Two - Set the Time Zone Properly

If the zone itself is wrong, everything else looks broken. Set it once, properly:

  1. See the current zone in the timedatectl output, on the Time zone line
  2. List the exact names with timedatectl list-timezones - names are case-sensitive and use slashes, like Asia/Kolkata
  3. Set it with sudo timedatectl set-timezone Asia/Kolkata
  4. Run timedatectl again and confirm the Local time line now shows the time on your wall clock

Still wrong after this, with the right zone showing? Then the zone was never the problem - go back to the pattern list in step 2.

5

Fix Three - Decide What the Hardware Clock Means, Once

On a dual-boot machine you must pick one convention and make both systems agree. Ubuntu's default is the sane one: the RTC holds UTC (RTC in local TZ: no) and each OS converts for display. Windows defaults to the opposite: it treats the RTC as local time.

  1. The quick Ubuntu-side compromise is timedatectl set-local-rtc 1 --adjust-system-clock - Ubuntu then reads and writes the RTC the way Windows expects
  2. Be honest about the trade: timedatectl itself prints a warning that local RTC mode is not fully supported and can cause problems, mainly around daylight-saving changes and systems that boot several operating systems
  3. The alternative is teaching Windows to use UTC through the RealTimeIsUniversal registry value, leaving Ubuntu at its clean default
  4. Whichever side you choose - choose only one. Applying both fixes flips the error to the opposite direction

Both routes have their own detailed guides in this series, with the grading of which one suits which machine.

6

Finish the Job - Push the Correct Time Back to the Hardware Clock

Once the system clock is correct and synchronized, store that correct value into the RTC so the next cold boot starts right:

  1. Confirm timedatectl shows the correct Local and Universal time, with synchronized: yes
  2. Run sudo hwclock --systohc - this copies the system time into the hardware clock
  3. Check what the hardware now holds with sudo hwclock --show
  4. Shut down fully, wait a minute, boot, and check the time before the network connects if you can - the RTC should already be right

If the time is wrong again after a full power-off even now, software has done all it can - suspect the CMOS battery or a drifting RTC on old hardware, and test that honestly instead of reinstalling anything.

🕐 One honest warning: if your clock is wrong by a small amount that grows every week, no setting is broken - either sync is silently failing or the hardware clock itself is drifting. Keep measuring with timedatectl instead of setting the time by hand again and again; a clock you correct daily is a fault you have not found yet.

Watch the Complete Video Guide

The full Ubuntu time troubleshooting video - dual boot fights, sync failures and the timedatectl checks, shown live, step by step.

Watch Full Video
❓ Common Questions (FAQ)

Why does my Ubuntu time change every time I boot Windows?

Windows writes the hardware clock as local time and Ubuntu reads it as UTC, so every switch moves the clock by your zone offset. Pick one convention - either timedatectl set-local-rtc 1 on the Ubuntu side, or the RealTimeIsUniversal value on the Windows side - never both.

Is it safe to run timedatectl set-local-rtc 1?

It is a built-in, supported command and it is the standard quick fix for Windows dual boots. Timedatectl itself warns that local RTC mode is not fully supported and can misbehave around daylight-saving changes and multi-boot setups. India has no daylight saving, so for most Indian home users the practical risk is low - but know the trade before you take it.

My time is wrong by only a few minutes. What is that?

Small errors are almost never a settings problem. Either internet sync is off or failing (the synchronized line in timedatectl says no), or the hardware clock is drifting as it ages. Turn sync on first; if the error keeps growing with sync on, suspect the hardware, including a weak CMOS battery on older machines.

This guide is based on the Technical Anshu Ubuntu time fix video - stuck on any step, ask in the video comments and you will get an answer.