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

Timezone for America/Montreal display -0400 instead of EDT or EST #1019

Open
ikus060 opened this issue Aug 2, 2023 · 2 comments
Open

Timezone for America/Montreal display -0400 instead of EDT or EST #1019

ikus060 opened this issue Aug 2, 2023 · 2 comments

Comments

@ikus060
Copy link

ikus060 commented Aug 2, 2023

Overview Description

Using babel to format date with local timezone show different result for America/Montreal and America/Toronto.

Steps to Reproduce

>>> dates.format_datetime(format='long', tzinfo=pytz.timezone('America/Toronto'))
'August 2, 2023 at 1:27:22 p.m. EDT'
>>> dates.format_datetime(format='long', tzinfo=pytz.timezone('America/Montreal'))
'August 2, 2023 at 1:27:29 p.m. -0400'

Expected Results

America/Toronto and America/Montreal are always on the same timezone. So I'm expecting timezone to be displayed as EDT for America/Montreal.

Maybe an alias is missing ?

@ikus060
Copy link
Author

ikus060 commented Aug 3, 2023

I also have similar issue with Europe/Zurich where it get displayed as +0200 instead of CEST

@celbaz
Copy link

celbaz commented Sep 11, 2023

I have noticed the same for all IST values "Asia/Kolkata"...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants