How to update time via ntpserver

Today, My MBP is out of power. I cannot surfing internet. and the brower tell me my time was wrong. Then I checked my time in my MBB, I’m back in time jan 1, 2018. Wow, I got extra whole year time!

Majove update time

sudo sntp -sS

When you’re getting this error

kod_init_kod_db(): Cannot open KoD db file /var/db/ntp-kod: No such file or directory

You can solved the problems with:

sudo touch /var/db/ntp-kod
sudo chmod 666 /var/db/ntp-kod

Disable No subscription warning

sed -i.bak "s/data.status !== 'Active'/false/g" /usr/share/javascript/proxmox-widget-toolkit/proxmoxlib.js && systemctl restart pveproxy.service