How to set NTP time in FreeBSD

At first set time using tzsetup

At second need to add the next line to /etc/rc.conf file

ntpdate_enable="YES"

The third thing is to edit /etc/ntp.conf by adding lines

server 0.pool.ntp.org
server 1.pool.ntp.org
server 2.pool.ntp.org
server pool.ntp.org
driftfile /var/db/ntp.drift

Reboot and time should be set automatically.

Edit 12.7.2025: Sometimes NTP time does not start automatically, but it can start via command line or script.

service ntpdate start

nptd_date_start.zip

#!/bin/sh
##
## RJP 12.7.2025
## FreeBSD Start NTP_Date manually script
## Package yad and xterm are needed
touch ~/.Xresources

echo ' ! Use a truetype font and size.
xterm*faceName: Monospace ' | grep -xFv -f $HOME/.Xresources >> $HOME/.Xresources

echo 'xterm*faceSize: 14 ' | grep -xFv -f $HOME/.Xresources >> $HOME/.Xresources

xrdb -merge ~/.Xresources

yad --form --columns=1 --width=500 --text="Start NTPDate manually" --title="Start NTPDate manually" \
\
--field="Start NTPDate manually ":fbtn "xterm -hold -e 'sudo service ntpdate start'" \
--button=Exit:1