This help article explains how to verify and fix your Mac’s date, time, and time zone so the Swif agent can authenticate, validate certificates, and sync successfully with Swif.ai services.
Why correct system time matters for Swif agent
Security and trust: time is used to validate SSL/TLS certificates and signed payloads. A skewed clock can cause handshake failures and rejected requests.
Scheduling and sync: the agent relies on accurate time to schedule check-ins, interpret token expiry, and de-duplicate events.
Telemetry ordering: incorrect timestamps can make events appear in the past or future, delaying or blocking ingestion.
Common symptoms when time is wrong
Swif console shows an outdated Last sync time for the device, even while online.
Agent status intermittently flips between healthy and unreachable.
SSL or certificate errors appear in logs; tokens seem to expire immediately or far in the future.
Quick checks
Look at the menu bar clock and confirm the date, time, and time zone look correct for your location.
If on VPN, briefly disconnect and re-check time sync after a minute.
If a corporate profile manages time settings, verify policy with your IT admin.
Fix date and time in macOS Settings
UI labels can vary slightly across macOS versions. Follow the version that matches your Mac.
macOS Ventura and Sonoma
Open System Settings > General > Date & Time.
Enable Set time and date automatically.
Ensure the time server is reachable. Recommended: time.apple.com or your organization’s NTP server.
Enable Set time zone automatically using your current location, or manually choose the correct time zone.
Confirm the displayed time is now correct to the minute.
macOS Monterey+
Open System Preferences > Date & Time.
If the padlock is closed, click it and authenticate with an administrator account to make changes.
On the Date & Time tab, check Set date and time automatically, and use time.apple.com or your corporate NTP server.
On the Time Zone tab, select Set time zone automatically using current location, or pick the correct city or region.
Best practice: keep both automatic time and automatic time zone enabled. This handles travel, daylight saving changes, and leap seconds without manual updates.
If settings are locked or managed
Configuration profiles can enforce time settings. Check System Settings > Privacy & Security > Profiles (or Profiles in System Preferences on Monterey).
If options are greyed out, contact your IT administrator to allow automatic time or correct the NTP server.
When escalating, include your device name, macOS version, and whether you are on corporate network or VPN.
Command-line verification and remediation
Run commands in Terminal. Some require admin privileges with sudo.
Check current clock and time zone
date
sudo systemsetup -gettimezone
sudo systemsetup -getusingnetworktime
Interpretation:
date should show the correct local time and day of week.
systemsetup -gettimezone should match your location, for example America/Los_Angeles.
systemsetup -getusingnetworktime: On indicates automatic time is enabled.
Enable automatic network time and set time zone
sudo systemsetup -setusingnetworktime on
sudo systemsetup -setnetworktimeserver time.apple.com
sudo systemsetup -settimezone America/Los_Angeles # replace with your zone
Caution: Avoid manually setting the time with the date command unless directed by IT. Large time jumps can disrupt keychain, Kerberos, MDM profiles, and background services.
Time servers (NTP) guidance
Preferred public server: time.apple.com. Many networks also sync well with time.euro.apple.com or pool.ntp.org, but follow your company policy first.
If your organization publishes an internal NTP server, use that host for lowest latency and firewall compatibility.
After you fix the clock
Confirm time and time zone are correct and automatic network time is On.
Restart the Swif agent or the machine to clear stale schedules and tokens.
Wait a few minutes and then check the device’s Last sync in the Swif console.
Troubleshooting
Still skewed after enabling automatic time: verify DNS and firewall allow NTP and HTTPS to your chosen time server and Swif endpoints.
On laptops with depleted batteries, an SMC or NVRAM reset may help preserve time across reboots in rare cases.
Contact support
If the Swif agent still does not sync after correcting time, contact Swif support and include:
macOS version and hardware model (e.g., Apple silicon or Intel).
Current time settings: output of date, systemsetup -gettimezone, and systemsetup -getusingnetworktime.
Whether automatic time and time zone are enabled, and which NTP server is configured.
Relevant agent logs around connection attempts, especially any certificate or time-related errors.

