MacBook Air time changing back ~5 months after wakeup
Hi,
I have M1 MacBook Air with macOS Monterey 12.0.1 installed. I wasn't using my machine for about month and recently, when I turned in on again I found out that time was changed to some day in July. I was not having time then to work out this issue, but I came back to it recently.
I tried check out automatic date&time set checkbox, set time manually and then check that box again - after that time again returns to July. Yesterday I found out that using:
sudo sntp -sS -t 15 time.apple.com
works (without -t doesn't, because in almost all tries timeouts occur). My machine worked fine, but today, when I turned it on, there was July date and time again set. I found out, that this is set in some moment when closing/opening lid. I have portion of logs:
default 23:22:12.201247+0100 timed xpc_activity_register: com.apple.timed.ntp.wanted, criteria: dictionary
default 23:22:12.201270+0100 timed _xpc_activity_register: com.apple.timed.ntp.wanted (0x13ff0e880), 0
default 23:22:12.201291+0100 timed xpc_activity_set_criteria: com.apple.timed.ntp.wanted (0x13ff0e880), dict
info 23:22:12.201354+0100 timed Proactive time is not necessary, dropping job with infinite start time
default 23:22:12.201375+0100 timed xpc_activity_set_criteria, lower half: com.apple.timed.ntp.wanted (0x13ff0e880), dict
debug 23:22:12.201421+0100 timed looked up value <private> for key TMAutomaticTimeOnlyEnabled in CFPrefsPlistSource<0x13fe0e760> (Domain: com.apple.timed, User: kCFPreferencesCurrentUser, ByHost: No, Container: (null), Contents Need Refresh: No) via CFPrefsSearchListSource<0x13fe0d6c0> (Domain: com.apple.timed, Container: (null))
debug 23:22:12.201514+0100 timed found no value for key DisableAutomaticTime in CFPrefsSearchListSource<0x13fe0d6c0> (Domain: com.apple.timed, Container: (null))
default 23:22:12.201451+0100 timed _xpc_activity_set_criteria: com.apple.timed.ntp.wanted (0x13ff0e880), dict
default 23:22:12.201652+0100 timed _xpc_activity_set_criteria: xpc_set_event com.apple.timed.ntp.wanted, 1
default 01:26:51.940077+0200 timed Setting system time to Sun Jul 18 01:26:51 2021 from TMTimeSynthesizer
default 01:26:52.037009+0200 timed cmd,apply,src,settimeofday,rtc_s,710586.540071750,rtc_unc_s,0.000500002,t_s,648257211.937489152,unc_s,3652.791653771,mach,232473687884,adjust,-12264920.262524843,success,1,after_m,232473687887
info 01:26:52.037055+0200 timed Dropping com.apple.timed.applyTime as it isn't used in any transform (not in the config or budgeted?)
default 01:26:52.037758+0200 timed cmd,rtc_offset,set,1625853825397417402,was,1625853825397277000,now,1625853825397399000,success,1
I have no idea what could be problem and where to dig to find solution. I checked descriptions from here https://apple.stackexchange.com/questions/117864/how-can-i-tell-if-my-mac-is-keeping-the-clock-updated-properly but I'm not sure if informations about timed are still valid, cause this is for older OS version and I also don't have all mentioned keys from timed plist:
sudo defaults read /var/db/timed/com.apple.timed
{
RTCResetCount = 0;
STF = {length = 542, bytes = 0x62706c69 73743030 d4010203 04050607 ... 00000000 0000019c };
TDTF = {length = 732, bytes = 0x62706c69 73743030 d4010203 04050607 ... 00000000 00000230 };
TMLastNtpFetchAttempt = "710589.335647";
TMLastRtcTime = "710904.79454";
TMSystemTimeSet = 1;
TMVersionKey = 17;
}
I will be glad to receive some information how to solve this problem or maybe where to dig deeper to find what causes this.
Thanks for your help.