Datetime OpenBSD Configuration
Recently I got problems to set the date and time correctly on my OpenBSD server so, after a while a found a solution here
As superuser do:
$ doas ln -sf /usr/share/zoneinfo/right/America/Toronto /etc/localtime
$ doas rdate -ncv time.google.com
Set your /etc/ntpd.conf to:
# Addresses to listen on
#(ntpd does not listen by default)
listen on *
server 0.pool.ntp.org weight 5
server 1.pool.ntp.org
server 2.pool.ntp.org
server 3.pool.ntp.org
# use all detected
# timedelta sensors
sensor *
Set your /etc/rc.conf.local to:
ntpd_flags="-s"
Run the command and then reboot your system:
$ doas rdate -nac pool.ntp.org
Then you can check if the clock is synced with:
$ ntpctl -sa