|
From: David G. <dga...@gm...> - 2018-08-05 17:16:52
|
2018-08-05 18:54 GMT+02:00 Peter Slegg <p....@sc...>: > 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 > Can you comment/remove the line where TZ variable is set in mint.cnf and try again? Show us please the output of date, tzinit and ntpdate after the variable is unset. |