Skip to content

Use ISO standard for day numbering #84

Description

@WickyNilliams

Right now I use the JS 0-indexed approach for day numbering throughout the codebase e.g.

  • Sunday 0
  • Monday 1
  • etc

This is used consistently throughout cally:

  • firstDayOfWeek defaults to 1 but is 0-indexed
  • CSS parts for day numbers e.g. day-0

But since the goal is to move entirely to Temporal API when it's available, we should switch to the ISO standard of 1-indexed day numbering.

Unfortunately this is a breaking change, so I will likely save for v1

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions