I have a Bash script who update the time of my mac but since the update of Mojave the command isn\'t found:
ntpdate -u time.apple.com
return :
For anyone trying to do this because their vm cannot connect to the update server while trying to install macos on a virtual machine, I switched my network adapter from NAT to bridged and the issue was resolved.