Software & OS

How to Change Time on Computer: Date, Time and Time Zone

To change the time on a computer running Windows, open Start, then Settings, then Time & language, then Date & time, turn off Set time automatically, and select Change to enter the date and time. To change only the time zone, use the Time zone drop-down on the same page.

Windows 11 and Windows 10 use the same page with minor layout differences, and a Mac has its own Date & Time pane. Below are the steps for each, the command-line way to change the time zone on Windows, and the reasons a clock stays wrong after you fix it.

How to change the time on a Windows computer

  1. Select Start, then Settings.
  2. Select Time & language, then Date & time.
  3. Turn Set time automatically to Off.
  4. Select Change. In Windows 11 the button sits next to Set the date and time. In Windows 10 it is under Set the date and time manually.
  5. In the Change date and time window, enter the date and time, then select Change.

The order matters. While Set time automatically is on, the Change button is unavailable and Windows takes the time from a time server, so there is nothing to type in. Turning the toggle off is what hands control to you.

A clock you set by hand will drift, because nothing corrects it afterward. For a normal internet-connected computer, the better fix for a wrong clock is the opposite one: turn the toggle on. The article How to Enable Set Time Automatically in Windows covers that, plus the w32tm commands that force a resync.

How to change the time zone in Windows

Open the same page: Settings, Time & language, Date & time. You have two options.

  • Automatic. Turn on Set time zone automatically. Windows then picks the zone for you.
  • Manual. Turn Set time zone automatically off, then choose your zone from the Time zone drop-down.

Pick manual when you want a fixed zone regardless of where the computer is, for example a laptop that should stay on your home time while you travel. The zone and the clock are independent settings. Changing the zone does not alter the underlying moment in time; it changes how that moment is shown. If you are unsure how two zones relate, UTC vs CST shows how an offset from UTC works.

Daylight saving time settings

Microsoft documents two cases. If Set time zone automatically is on, daylight saving time is handled automatically. If it is off, the page offers Adjust for daylight saving time automatically. Leave it on and the clock moves on the dates defined for your zone. Turn it off if you want to handle the change yourself, and set the time manually when the clocks change.

Change the time zone from the command line

Windows includes tzutil, the Windows Time Zone utility. It is useful for scripts or for a machine where you would rather not click through Settings. Run these in Command Prompt or PowerShell. First, show the current zone ID:

tzutil /g

To list every valid time zone ID with its display name:

tzutil /l

To set the zone, pass the ID in quotes. Microsoft's own example sets Pacific Standard time:

tzutil /s "Pacific Standard time"

To set the zone and turn off daylight saving adjustments where the zone has them, add the _dstoff suffix inside the quotes:

tzutil /s "Pacific Standard time_dstoff"

Run tzutil /g again to confirm. Example output after the first set command:

Pacific Standard Time

An exit code of 0 means the command completed successfully. Use the exact IDs from tzutil /l, because a name that does not match a listed ID will not be accepted. Note that tzutil changes the zone only. It does not set the date or the time of day.

OptionWhat it does
/gDisplays the current time zone ID.
/s <timezoneID>[_dstoff]Sets the time zone. The value must be in quotes. _dstoff disables daylight saving adjustments.
/lLists all valid time zone IDs and display names.
/?Shows help.

Show or hide the date and time in the taskbar

If the clock itself is correct but you cannot see it, the same Date & time page has a toggle named Show time and date in the System tray. Microsoft also documents Show seconds in system tray clock, which adds seconds to the taskbar clock. Microsoft notes that it uses more power.

How to change the time on a Mac

Apple's documented steps are for automatic time:

  1. Open System Settings.
  2. Select General in the sidebar, then Date & Time. You may need to scroll to find it.
  3. Turn on Set time and date automatically, then click Set.
  4. Choose a network time server for your region, then click Done.
  5. Turn on Set time zone automatically using your current location if you want the zone to follow your location.

Apple's page describes the automatic option for the time zone and does not describe picking one by hand, so this article does not either. If your Mac is the one with the wrong clock, check that the automatic toggles above are on. The menu labels can differ slightly between macOS versions, so if you do not see a label exactly as written here, look in the same Date & Time pane for the closest match.

Why the time is still wrong after you change it

  • The clock is right but the zone is wrong. A time that is off by a whole number of hours, such as exactly 3 hours or 8 hours, is almost always a time zone problem. Fix the zone, not the clock.
  • The time reverts. Set time automatically was probably still on, so the value you entered was replaced by the time server's. Turn it off before using Change, or leave it on and let the server correct the clock.
  • The settings are unavailable. On a computer managed by an organization, time settings can be controlled by policy. The person who administers the device has to change them.
  • The date is wrong but the time is right. The Change window has separate date and time fields. Check the date before you confirm.
  • The error is a few minutes and keeps returning. A manually set clock drifts. Turn automatic time back on so Windows keeps correcting it.

When to set the time manually and when not to

Manual time is right for a few situations: a computer with no network connection, a test that needs a specific date, or a device you do not want to sync for a policy reason. For everything else, leave both automatic toggles on. They keep the time and the zone correct without any steps from you, including across daylight saving changes when the zone toggle is on.

If it still fails

Run tzutil /g in a terminal and compare the result with the zone shown in Settings. If they match and the displayed time is still wrong, the clock value itself is off: turn on Set time automatically and follow the resync steps in the linked Windows article. If the toggles are greyed out, the device is probably managed, and the fix is with whoever administers it.

Frequently asked questions

Why does my computer clock keep changing back after I set it?
Most likely Set time automatically is still on, so Windows overwrites your value with the time from a time server. Turn that toggle off before you use the Change button. If the time resets after a restart even with the toggle off, the problem is outside the settings pages, for example a policy that controls the time service on a work computer.
Does changing the time zone change the time?
It changes how the time is displayed, not the moment itself. The computer keeps one underlying time and shows it in the zone you pick, so moving from Pacific to Eastern shifts the displayed clock by three hours while the real moment stays the same.
What does the _dstoff suffix in tzutil do?
Adding _dstoff to the time zone ID, as in tzutil /s "Pacific Standard time_dstoff", sets that zone with daylight saving time adjustments disabled, where the zone has any. Microsoft requires the whole value to be wrapped in quotes.
Can I show seconds in the Windows taskbar clock?
Yes. On the Date & time page, Microsoft documents a toggle named Show seconds in system tray clock. Microsoft notes that it uses more power, which matters mainly on a laptop running on battery.

Sources