Introduction / Why This Is Needed
Manual time configuration on macOS may be necessary in certain situations: when automatic synchronization with NTP servers is unavailable (for example, in isolated networks), when the system time drifts due to hardware issues, or when a specific time value needs to be set for testing purposes. Incorrect time can cause errors in web services, disrupt SSL/TLS certificate functionality, and lead to improper event logging. This guide will help you quickly and accurately set the time manually and provide an understanding of how to manage this parameter via the terminal.
Requirements / Preparation
Before you begin, ensure that:
- You have access to an account with administrator privileges (to unlock settings and change system time).
- macOS is updated to Monterey (12.x) or newer (the interface may differ slightly in older versions).
- If you plan to use the terminal, open the "Terminal" application (in the "Utilities" folder or via Spotlight).
- Changing the time via the terminal will require an administrator password.
Step-by-Step Guide
Step 1: Open System Settings
Click the Apple logo in the top-left corner of the screen and select "System Settings" (in macOS Ventura and newer) or "System Preferences" (in older versions). Alternatively, use Spotlight: press Cmd + Space and type "System Settings".
Step 2: Navigate to the "Date & Time" Section
In the System Settings window, locate the "Date & Time" icon. In macOS Sonoma and Ventura, the section may be found under the "General" category. Simply type "time" in the search field at the top of the window to quickly find the relevant section.
Step 3: Unlock the Settings
By default, the input fields are locked. At the bottom of the window, click the lock icon 🔒 and enter your administrator password. The lock will then change to an open state, allowing you to make changes.
Step 4: Disable Automatic Synchronization
Uncheck the box next to "Set date and time automatically". This action will unlock the fields for manual input. If you wish to use a different NTP server (for example, an internal server on a corporate network), select it from the "Time Server" dropdown menu before unchecking the box.
💡 Tip: If you frequently switch between automatic and manual configuration, create a terminal script (see below) to quickly toggle the mode.
Step 5: Set the Date and Time Manually
In the fields that appear:
- "Date": Click the calendar and select the day, month, and year.
- "Time": Set the hours and minutes (and seconds if necessary).
- "Time Zone": Ensure the correct time zone is selected (for example, "Moscow, Istanbul" for MSK). An incorrect time zone will cause the time to be offset from UTC.
After filling in the fields, the system will automatically apply the new values. Note that changing the system time may affect some applications (such as task schedulers).
Step 6: Verify and Save Changes
Close the "System Settings" window. To verify, open the Apple menu—the time in the menu bar should display correctly. You can also run the following command in Terminal:
date
The command output will show the current system date and time. If needed, restart your computer to ensure the time persists after a reboot (it usually does if the logic board battery is functional).
Verifying the Result
- Via the menu bar: Hover over the time in the menu bar (top-right corner). The date and time you set should be displayed.
- Via Terminal: Execute the
datecommand. An example of correct output:Sat Feb 16 14:30:00 MSK 2026Note the time zone abbreviation (MSK) and its correspondence to the values you set. - Via a web service: Open a website that displays the time based on your IP address (for example, time.is). If the time matches, the configuration was successful.
Potential Issues
Issue 1: Manual input fields remain inaccessible
- Cause: Settings are not unlocked (you didn't click the lock) or an MDM profile (mobile device management) is active.
- Solution: Ensure you are logged in as an administrator and have clicked the lock. If an MDM profile is installed, contact your system administrator.
Issue 2: Time reverts to the previous value after reboot
- Cause: A faulty logic board battery (CMOS) or a conflict with the NTP daemon.
- Solution: Check the battery status via "System Information" → "Power". If the battery is depleted, it may need replacement. Temporarily disable the NTP daemon:
sudo launchctl unload /System/Library/LaunchDaemons/org.ntp.ntpd.plist(but this is not recommended for permanent use).
Issue 3: "Operation not permitted" error when changing time via terminal
- Cause: Insufficient superuser privileges or System Integrity Protection (SIP) is enabled.