# ntpdate nz.pool.ntp.org
# cp /usr/share/zoneinfo/Pacific/Auckland /etc/localtime
$ setenv TZ Pacific/Auckland
$ export TZ=Pacific/Auckland
ntpdate_enable="YES"
ntpdate_hosts="nz.pool.ntp.org"
Dereckson said:Finally, you can also configure your system to synchronize automatically the time, adding the following lines in /etc/rc.conf:
Code:ntpdate_enable="YES" ntpdate_hosts="nz.pool.ntp.org"
ntpd_enable="YES"
ntpd_sync_on_start="YES"
I prefer to make symbolink linkDereckson said:(1) put all the system in local timezone:
# cp /usr/share/zoneinfo/Pacific/Auckland /etc/localtime
# ln -s /usr/share/zoneinfo/Europe/Riga /etc/localtime