How to Set Date and Time in Kali Linux

How To Set Date And Time In Kali Linux

How to Set Date and Time in Kali Linux

Kali Linux uses the same systemd time controls as Debian. Start by checking the current clock, time zone, and network synchronization state, then change only the setting that is wrong.

Check the current clock before changing it

The timedatectl status command shows local time, universal time, the configured time zone, and whether network time synchronization is active. On current systemd releases, that status view exposes all of those fields in one place.

timedatectl status

Set the time zone for a wrong displayed offset, while manual date and time changes suit systems without a network time source or a temporary clock correction.

Set the time zone with timedatectl

List valid IANA time zone names and use the exact Region/City value that the list prints.

timedatectl list-timezones

Then set the chosen zone. This changes the displayed local time while preserving the underlying system clock.

sudo timedatectl set-timezone Asia/Kolkata

Run timedatectl status again to confirm the Time zone field. The existing desktop-clock images below still show the equivalent graphical path for a Kali desktop session.

Group Of Indicators At Corner Of Window

Open the panel clock settings, choose the correct region, and confirm the displayed time before continuing.

Select Properties In Drop Down Menu
Select Your Time Zone
After Updating Your Timezone Close This Window
Confirm The Latest Updated Time And Date After Choosing Our Timezone

Keep network time synchronization enabled

Network Time Protocol (NTP) keeps the system clock aligned after boot. Enable it when the machine has network access and you do not need a fixed manual clock.

sudo timedatectl set-ntp true
timedatectl status

A synchronized clock avoids certificate and package-index failures caused by an incorrect date. If the status still shows synchronization as inactive, check the active network connection and the configured time service before setting the clock manually.

Set a manual date or time when needed

Disable NTP before a manual change so the time service does not immediately replace your value. Use the ISO-style date and time format accepted by timedatectl.

sudo timedatectl set-ntp false
sudo timedatectl set-time "2026-08-17 10:30:00"
timedatectl status

You can pass a date alone or a time alone when only one component needs correction. Re-enable NTP when the temporary requirement ends.

sudo timedatectl set-ntp true

The following images preserve the desktop steps for unlocking the clock settings and entering a manual value.

Click Date And Time Settings Button For Custom Date Time
Click Unlock Button To Change Date And Time 1
Authencate With Your Password
Click On Lock Button After Changing Time And Date

Use the desktop settings when you prefer a graphical path

Kali desktop environments expose clock and time-zone controls through the panel settings. Unlock the settings when prompted, make the change, then lock them again so an accidental click cannot alter the clock.

The terminal route is more useful over SSH and on minimal installations. For common shell tasks after the clock is correct, keep the Kali Linux commands reference nearby.

Verify the change

Use this short checklist after any change:

  • timedatectl status shows the intended time zone.
  • System clock synchronized is yes when NTP should manage the clock.
  • RTC in local TZ remains no unless you have a specific dual-boot requirement.

If you are running Kali in a virtual machine, verify that the guest and host time settings agree. The Kali in VirtualBox setup guide covers the surrounding virtual-machine workflow.

Related Linux tasks

After fixing the clock, use Linux command line basics to work through shell navigation, Linux package management before updating tools, and restart Linux safely when a service or system restart is required.

Frequently asked questions

What command shows the current date and time in Kali Linux?

Run timedatectl status. It shows the local time, universal time, time zone, network synchronization state, and hardware-clock setting.

How do I change the time zone in Kali Linux?

Run sudo timedatectl set-timezone followed by an IANA zone name such as Asia/Kolkata, then run timedatectl status to confirm the setting.

Should I set the date manually in Kali Linux?

Use a manual date only when a network time source is unavailable or a temporary requirement calls for it. Disable NTP first, set the value, and re-enable NTP afterward.

Keep the first status check in your command history. It gives you a clean baseline when a time zone, NTP service, or virtual-machine clock needs attention again.