Parrot Linux Shows the Wrong Time After Dual Booting Windows

If Parrot Linux shows the wrong time after dual booting Windows, you are not looking at a bug in either system. You are looking at two operating systems that disagree about what the hardware clock on your motherboard means. Windows assumes the clock holds local time; Linux assumes it holds UTC. Every time you boot one after the other, the clock gets rewritten with the other convention, and the time jumps by exactly your UTC offset. For someone in Dhaka that is six hours; in Berlin it is one or two depending on the season. This guide explains why it happens, shows you how to confirm it on your own machine, and gives you the two reliable fixes, one on the Parrot OS side and one on the Windows side.

Why Dual Booting Windows Shifts the Clock

Your computer has a small battery-backed real-time clock (RTC), often called the hardware clock or CMOS clock. It stores a single timestamp with no time zone attached. Each operating system has to decide how to interpret that number.

  • Windows reads the RTC as local time. If it says 09:00, Windows displays 09:00.
  • Parrot OS (and almost every other Linux distribution) reads the RTC as UTC. If it says 09:00, Parrot OS adds your time zone offset and displays 15:00 in Asia/Dhaka.

Neither side is wrong on its own. The problem appears when both share one clock. Windows writes local time into the RTC when it shuts down or syncs. Parrot OS then boots, assumes that value is UTC, and displays a time that is off by your offset. When Parrot OS later syncs over the network and writes UTC back into the RTC, Windows boots and shows the error in the opposite direction. The symptoms are easy to recognise:

  • The displayed time is wrong by a whole number of hours that matches your time zone offset, not by random minutes.
  • It is correct again a minute or two after connecting to the internet, then wrong again after the next reboot into the other system.
  • Windows may also complain that certificates are not yet valid, or Parrot OS may refuse to run apt update because the release file is “not valid yet”.

If your time is off by a few minutes rather than whole hours, this is a different problem (usually a dead CMOS battery or a disabled NTP service), and the section near the end covers that.

Confirm the Diagnosis on Parrot Linux

Boot into Parrot OS and run:

timedatectl

The output has two lines that matter. RTC in local TZ: no means Parrot OS is treating the hardware clock as UTC (the default). Time zone: should show your real zone, for example Asia/Dhaka (+06, +0600). If the zone is wrong, fix that first, because a wrong zone produces the same kind of whole-hour error without Windows being involved at all:

timedatectl list-timezones | grep -i dhaka
sudo timedatectl set-timezone Asia/Dhaka

Next, compare the two clocks directly:

date
sudo hwclock --show

hwclock --show prints the RTC value converted according to the current setting. If date is correct and hwclock is off by your offset, the hardware clock holds local time, which is exactly what Windows left there. You now know which fix you need.

Fix 1: Tell Parrot Linux the Hardware Clock Is Local Time

This is the quickest fix and needs no changes on the Windows side. One command switches Parrot OS to the Windows convention:

sudo timedatectl set-local-rtc 1 --adjust-system-clock

Run timedatectl again and you should see RTC in local TZ: yes along with a warning that this mode is not fully supported. The warning is worth understanding rather than ignoring. With the RTC in local time, systemd cannot tell whether a change to the clock was a real time adjustment or a daylight-saving transition, so on the day the clocks change you may see a one-hour error until network time sync corrects it. Bangladesh does not observe daylight saving, so for a machine in Dhaka this is a non-issue. In countries that do, Fix 2 is the cleaner option.

To go back to the default later:

sudo timedatectl set-local-rtc 0 --adjust-system-clock

Fix 2: Tell Windows the Hardware Clock Is UTC

Windows has supported reading the RTC as UTC for many years; it is simply switched off by default. Turning it on lets both systems agree on UTC, which is the convention every server, container and virtual machine already uses. Boot into Windows and do the following:

  1. Open the Start menu, type cmd, right-click Command Prompt and choose Run as administrator.
  2. Run this command exactly:
reg add "HKLMSYSTEMCurrentControlSetControlTimeZoneInformation" /v RealTimeIsUniversal /t REG_DWORD /d 1 /f
  1. Reboot Windows. Check the clock. If it is now off by your offset, that is expected on the first boot after the change: the RTC still contains local time. Right-click the clock, open Adjust date/time, turn Set time automatically off and on again to force a sync, or run w32tm /resync in the same administrator prompt.
  2. Reboot into Parrot OS. Make sure the Linux side is on the default UTC setting (sudo timedatectl set-local-rtc 0) and confirm with timedatectl.

One known limitation: some versions of Windows ignore the UTC setting when the Windows Time service runs its own sync, and older guidance suggested disabling that service. On recent Windows 10 and 11 builds this is rarely necessary, but if the clock keeps drifting back to local time after a sync, disable automatic time setting in Windows and let Parrot OS keep the RTC correct instead.

To undo the change, repeat the reg add command with /d 0.

Which Fix Should You Choose?

SituationRecommended fix
Your region has no daylight saving timeEither; Fix 1 is faster
Your region observes daylight savingFix 2 (keep Linux on UTC)
Triple boot with another Linux (e.g. Ubuntu)Fix 2, so all Linux installs stay on their default
You cannot get administrator rights on WindowsFix 1
Machine is a lab box that you also run Windows VMs onFix 2; virtual machines expect a UTC host clock

If you set up the dual boot following the site’s Windows dual-boot walkthrough, nothing in that process changes the clock convention, so you still need one of the two fixes above. The same applies to a Parrot Linux and Ubuntu dual boot when Windows is a third system.

Make Sure Parrot Linux Is Actually Syncing Time

Whichever fix you pick, Parrot OS should correct any remaining drift automatically once it is online. Check that the time sync service is enabled:

timedatectl show -p NTP -p NTPSynchronized
systemctl status systemd-timesyncd --no-pager

If NTP=no, turn it on:

sudo timedatectl set-ntp true

Parrot OS uses systemd-timesyncd by default. If you have installed chrony or ntpsec for a lab, only one of them should run; systemd-timesyncd steps aside automatically when it detects another NTP daemon, but chronyc tracking will tell you whether chrony is in control. When AnonSurf is active, NTP traffic over UDP cannot pass through Tor, so time sync pauses until you stop AnonSurf; the AnonSurf guide describes that behaviour. Firewall rules that drop outbound UDP 123 have the same effect; the firewall guide shows how to allow it.

apt Fails With “Release file is not valid yet”

A clock that is behind real time by hours causes a very specific error when you update:

E: Release file for https://deb.parrot.sh/parrot/dists/lory/InRelease is not valid yet (invalid for another 5h 58min)

apt refuses to trust repository metadata that appears to come from the future. Set the time correctly (any of the fixes above, or a one-off sudo timedatectl set-ntp true followed by a short wait) and run sudo apt update again. Do not work around it with the Acquire::Check-Valid-Until option; that disables a genuine protection against stale mirrors. If the error persists after the clock is right, the apt errors guide covers the other causes.

Time Is Off by Minutes, Not Hours

A drift of a few minutes that grows over days usually means the RTC itself is losing time. Common causes:

  • Dead CMOS battery. On desktops it is a CR2032 coin cell on the motherboard; on laptops it may be soldered. A dead battery also resets BIOS/UEFI settings and may show a date like 2009 or 2015 at boot.
  • No network time. A machine that never goes online never syncs. Enable NTP as shown above, or set the time manually with sudo timedatectl set-time "2026-11-23 09:30:00", then write it to the RTC with sudo hwclock --systohc.
  • Virtual machine host drift. If Parrot OS runs inside VirtualBox or VMware, install the guest additions so the guest follows the host clock; the guest additions page explains the install.

You can watch the kernel’s view of RTC behaviour in sudo dmesg | grep -i rtc, and the systemd project documents every timedatectl option in its manual page.

Checklist

  1. Run timedatectl and confirm the time zone is correct.
  2. Compare date with sudo hwclock --show; a whole-hour gap means a local-vs-UTC mismatch.
  3. Apply Fix 1 (Linux reads local time) or Fix 2 (Windows reads UTC), not both.
  4. Confirm NTP is on and synchronising.
  5. Reboot into each system twice to be sure the clock stays correct.

FAQ

Does the wrong time cause any damage?

Not to files, but it breaks anything that checks timestamps: HTTPS certificate validation, apt repository checks, Kerberos logins and two-factor authentication codes that rely on the current time. Fixing it is worth the five minutes.

Will Windows Update undo the UTC registry setting?

Feature updates have been known to reset some registry values. If the problem returns after a major Windows update, check the RealTimeIsUniversal value and add it again.

I only use Windows once a month. Is there a lazier option?

Yes. Leave both systems on their defaults and accept that the first boot after switching will be wrong until NTP corrects it. Parrot OS fixes itself within a minute of getting online; Windows does the same if automatic time setting is enabled. It is untidy, but it works if you can tolerate the brief error.