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
Warning: ignoring the TZ variable, reading the system's timezone setting only.
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) NTP enabled: yes NTP synchronized: no RTC in local TZ: no DST active: yes Last DST change: DST began at Sun 2017-03-26 01:59:59 CET Sun 2017-03-26 03:00:00 CEST Next DST change: DST ends (the clock jumps one hour backwards) at Sun 2017-10-29 02:59:59 CEST Sun 2017-10-29 02:00:00 CET
I have set the TZ variable to Madrid but the system sticks with UTC
What can I do
Regards
Uwe Brauer
In article 87poe13x39.fsf@gmail.com, Uwe Brauer trinity-users@lists.pearsoncomputing.net 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