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

Set your /etc/ntpd.conf to:

    # Addresses to listen on
    #(ntpd does not listen by default)
    listen on *

    server weight 5

    # use all detected
    # timedelta sensors
    sensor *

Set your /etc/rc.conf.local to:


Run the command and then reboot your system:

$ doas rdate -nac

Then you can check if the clock is synced with:

$ ntpctl -sa