Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Different time for UK/London and Europe/London #5

Open
angel-devicente opened this issue May 12, 2022 · 1 comment
Open

Different time for UK/London and Europe/London #5

angel-devicente opened this issue May 12, 2022 · 1 comment
Labels
bug Something isn't working

Comments

@angel-devicente
Copy link

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
md-arif-shaikh added a commit that referenced this issue May 13, 2022
@md-arif-shaikh
Copy link
Owner

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.

@md-arif-shaikh md-arif-shaikh added the bug Something isn't working label May 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants