From 5b0e3c014a50ca6a71ab4867f1948a277418affa Mon Sep 17 00:00:00 2001 From: j Date: Mon, 12 Jun 2023 14:17:39 +0200 Subject: [PATCH] Update page '6-9-2023 Cohort 1 Sync Notes' --- 6-9-2023 Cohort 1 Sync Notes.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/6-9-2023 Cohort 1 Sync Notes.md b/6-9-2023 Cohort 1 Sync Notes.md index 4f7d1f3..ae1bd89 100644 --- a/6-9-2023 Cohort 1 Sync Notes.md +++ b/6-9-2023 Cohort 1 Sync Notes.md @@ -14,7 +14,7 @@ Start-Service W32Time w32tm /resync ``` -* MacOS resync command: TODO @j +* MacOS resync command: `sudo sntp -sS time.apple.com` * Use `platform.system()` to figure out whether it's Windows or MacOS, and use `subprocess` to run the NTP sync command so the whole computer has accurate time. Make sure to check the return code (0 = success, not zero = failure) * Although `subprocess` can give you the return code directly, it's helpful to know that it's available in the shell/powershell as `$?` on MacOS/Linux, and `$LASTEXITCODE` in powershell. * TODO @j figure out how to get systemd running in the container