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

issue with en_AU locale #1133

Open
alec000inspired opened this issue Sep 24, 2024 · 2 comments · May be fixed by #1146
Open

issue with en_AU locale #1133

alec000inspired opened this issue Sep 24, 2024 · 2 comments · May be fixed by #1146

Comments

@alec000inspired
Copy link

Overview Description

When I use the en_AU locale, the date format for 2023-12-31 places it into W1 of 2023.
I would expect this to be W53 of 2023 or possible W1 of 2024.

Steps to Reproduce

import datetime
import babel
import babel.dates
foo = babel.dates.format_date(datetime.date(year=2023, month=12, day=31), format="'W'w YYYY", locale='en_US')
bar = babel.dates.format_date(datetime.date(year=2023, month=12, day=31), format="'W'w YYYY", locale='en_AU')
print(foo)  # W53 2023 (correct)
print(bar)  # W1 2023 (incorrect)

Actual Results

'W1 2023'

Expected Results

'W53 2023'

@RomainBarbason
Copy link

Can i be assigned to this problem ? Thanks !

@tomasr8
Copy link
Member

tomasr8 commented Oct 15, 2024

Go for it :)

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

Successfully merging a pull request may close this issue.

3 participants