tzc
tzc copied to clipboard
Different time for UK/London and Europe/London
Hi,
I just installed tzc, and while configuring it I realized that the time given for UK/London is different to that given for Europe/London, as you can see below from the tzc-world-clock command:
Canarias 09:13 Thu 12 May 2022 +0100
CET 10:13 Thu 12 May 2022 +0200
UTC 08:13 Thu 12 May 2022 +0000
New_York 04:13 Thu 12 May 2022 -0400
London 08:13 Thu 12 May 2022 +0000
London 09:13 Thu 12 May 2022 +0100
Madrid 10:13 Thu 12 May 2022 +0200
Hi,
Thanks a lot for reporting this. I realized that UK/London
is not a valid time-zone
name and one should use only Europe/London
. Currently, the package does not raise an error or warn if one uses a time-zone
that is not recognized, instead it returns an offset of zero from UTC
. This is exactly what is happening here. I have a plan to fix this in the near future.
For the time being, I have added a very simple interactive function tzc-check-time-zone
which takes a time-zone
and tells whether it's recognized or not. Try using it on UK/London
and Europe/London
or any other name.