|
From: Peter S. <p....@sc...> - 2018-08-05 16:55:01
|
On Sun, 05 Aug 2018 18:34:13 , Thorsten Otto <ad...@th...> wrote: > On Sonntag, 5. August 2018 18:27:17 CEST Peter Slegg wrote: > > What is TZ for ? > > TZ is for older libraries like the one from PureC that don't have a timezone > database. > > Thanks. I had assumed it was for tzinit. I tried calling ntpdate before tzinit but it still shows GMT. So from bash I tried various combinations. The time is currently 17:50 BST but it only shows 16:50 or 15:50 Test with tzinit -u bash-4.3# date Sun Aug 5 16:51:27 BST 2018 bash-4.3# ntpdate pool.ntp.org Looking for host pool.ntp.org and service ntp host found : fluffykins.positive-internet.com 5 Aug 16:51:32 ntpdate[205]: step time server 80.87.128.222 offset 3600.563846 sec bash-4.3# date Sun Aug 5 16:51:34 BST 2018 bash-4.3# /sbin/tzinit -u Current date and time: Sun Aug 5 16:51:41 2018 Time zone in use: BST East of Greenwich Mean Time: 1:00:00 Kernel clock mode: UTC bash-4.3# date Sun Aug 5 16:51:42 BST 2018 Test with tzinit -l bash-4.3# date Sun Aug 5 16:52:27 BST 2018 bash-4.3# /sbin/tzinit -l Current date and time: Sun Aug 5 15:52:39 2018 Time zone in use: BST East of Greenwich Mean Time: 1:00:00 Kernel clock mode: localtime bash-4.3# date Sun Aug 5 15:52:46 BST 2018 bash-4.3# ntpdate pool.ntp.org Looking for host pool.ntp.org and service ntp host found : time.rdg.uk.as44574.net 5 Aug 16:52:52 ntpdate[212]: step time server 193.150.34.2 offset 7200.727898 sec bash-4.3# date Sun Aug 5 16:52:54 BST 2018 Peter |