trinity-users@lists.pearsoncomputing.net

Message: previous - next
Month: June 2017

Re: Ubuntu 14.04+trinity time zone problem, UCT

From: Nick Leverton <nick@...>
Date: Sun, 25 Jun 2017 21:07:56 +0000 (UTC)
In article <87poe13x39.fsf@...>,
Uwe Brauer  <trinity-users@...> wrote:
>
>Hi
>
>I have set the tde lock to local time zone (mine is spain) and set the
>clock the corresponding time
>however the time on the terminal is 2 hours earlier
>
>Date gives
>
>Sun Jun 18 19:36:19 Europa 2017
>
>While it is actually 21:36
>
>Timedatectl
>gives
>      Local time: Sun 2017-06-18 21:37:37 CEST
>  Universal time: Sun 2017-06-18 19:37:37 UTC
>        Timezone: Europe/Madrid (CEST, +0200)
>
>I have set the TZ variable to Madrid but the system sticks with UTC
>
>What can I do
>
>Regards
>
>Uwe Brauer 

Can you double check the setting of TZ ?  I think it may be set to
"Europa/Madrid" which is not a known zone so tzlibs assume UTC.

$ TZ=Europe/Madrid date
Sun 25 Jun 22:57:08 CEST 2017
$ TZ=Europa/Madrid date
Sun 25 Jun 20:59:54 Europa 2017

However you shouldn't need to set it as your system time is already
"Europe/Madrid" (note spelling).  To change the overall system timezone
on Debian/Ubuntu, best way is "sudo dpkg-reconfigure tzdata".

Nick
-- 
"The Internet, a sort of ersatz counterfeit of real life"
	-- Janet Street-Porter, BBC2, 19th March 1996