MacOS system clock off by 15 minutes or more

My app is particularly sensitive to time sync issues since it authenticates using time-sensitive JWTs. Thus I’ve designed it to detect a time sync issue. I’m noticing MacOS environment fails maybe 1/10 times with a VM that’s a good 15-20 minutes out of sync with other time servers. See:

https://travis-ci.org/jay0lee/GAM/jobs/609652634

for an example. I suppose I could run ntpdate as part of the before_install to try and get time synced up but it seems odd that the MacOS VMs would be that far off to begin with. I don’t see these kind of issues with Linux/Windows VMs running in Google Cloud so suspect it’s something to do with the Mac environment.

Jay

Imprint