Skip to content

HE calendar formats day of the week incorrectlyΒ #24

@IdoLeshkowitz

Description

@IdoLeshkowitz

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions