trouble setting timezone for ukraine

Alexander Kapshuk alexander.kapshuk at
Sat Nov 5 07:48:22 UTC 2011

On 11/05/11 00:55, Lowell Gilbert wrote:
> Alexander Kapshuk<alexander.kapshuk at>  writes:
>> On 11/04/11 22:46, Lowell Gilbert wrote:
>>> Alexander Kapshuk<alexander.kapshuk at>   writes:
>>>> the actual current time is 10.21 pm.
>>> Your system's clock may be off as well...
>>>> any idea when an updated time zone file will become available?
>>> It's already in the FreeBSD tree:
>>> To install it, you'll need something like
>>>    # zic europe
>>> (where "europe" is the file from the URL above)
>>> and then tzsetup(8) should install the correct information.
>>> Or you could update your system to anything after October 26.
>> thanks.
>> here's what i did based on my understanding of the instructions given above:
>> # cd $HOME
>> # fetch -o europe
>> # zic europe
>> # tzsetup -r
>> :; date
>> Sat Nov  5 00:54:32 EET 2011
>> the timezone did change from 'FET' to 'EET', but the time is still
>> wrong by being 1 hour ahead of the actual ukraine time.
>> another thing i tried, which didn't seem to help was set these
>> environment variables in my /etc/rc.conf:
>> (as suggested here:
>> [post # 6])
>> ntpdate_enable="YES"
>> ntpdate_flags="-u -b"
>> ntpdate_hosts=""
> That will only do anything at startup.
> To do the same thing without needing to reboot, the command line would be
>   # ntpdate -u -b
>> i must be doing something wrong. just don't know what is it.
>> can anyone please suggest what it is i should be doing?
> Well, start with what I suggested a while back: try "date -u"
> and see whether that is the correct UTC time.  If not, the ntpdate
> command will solve you problems.  If it is, there's still something else
> wrong.

thanks for your replies.

running 'date -u' indicated that the system clock on my machine was out 
of sync as well.

running 'ntpdate -u -b' set both the system clock and 
the local time to the right time.

:; date -u
Sat Nov  5 07:24:23 UTC 2011
:; date
Sat Nov  5 09:24:26 EET 2011

then i read somewhere that 'ntpdate' is bound to become deprecated at 
some stage. it was suggested that 'ntpd' be used instead. so i removed 
the 'ntpdate' variables from my '/etc/rc.conf' and replaced them with:

:; grep ntpd /etc/rc.conf
ntpd_sync_on_start="YES" talks about 
modifying the '/etc/ntp.conf' file by adding information on what servers 
to use. it also said that 'By default, your NTP server will be 
accessible to all hosts on the Internet. The restrict option in 
/etc/ntp.conf allows you to control which machines can access your server'

i'm not sure i clearly understand what has to be done to make the ntp 
server on my system to be inaccessible to anyone but me.

a sample /etc/ntp.conf would be appreciated.



More information about the freebsd-questions mailing list