-
Notifications
You must be signed in to change notification settings - Fork 6
Closed
Description
Hey,
I'm working on the main branch and I've noticed an issue with formatting the day of the week on he-IL calendar.
to reproduce -
MyApp.Cldr.put_locale("HE")
{:ok, MyApp.Cldr.Locale.new!("he-IL")}
{:ok, today} = MyApp.Cldr.Calendar.localize(Date.utc_today())
{:ok, ~D[2025-01-29 Cldr.Calendar.IL]}
beginning_of_week = Date.beginning_of_week(today)
~D[2025-01-26 Cldr.Calendar.IL]
Calendar.strftime(beginning_of_week, "%a")
"Mon"You can see that the it returns a correct date for the beginning of the week (2025-01-26), but when formatting the date and extracting day of the week it returns the wrong day (Monday instead of Sunday). Same happens when formatting with Cldr.Calendar.localize
Metadata
Metadata
Assignees
Labels
No labels