Skip to content

Repeating dates in header on Daylight Saving Time boundaries #306

@foodpoison

Description

@foodpoison

Describe the bug
The header bar that display the dates, on days in timezone that when DST changes, both that day and the day after will show the same day. The content in those two days are correctly displayed, only the header bar is incorrect. This is likely an issue with use of Calendar as datetime transport.

To Reproduce
Steps to reproduce the behaviour:

  1. Set the phone's timezone to "United Kingdom" i.e. Greenwich Mean Time +00:00
  2. In an app where this library is used, scroll to "30th March 2025"
  3. Both that day and the day after are the same, sometimes both 30th, or both 31st

Expected behaviour
The different days should display as different days.

Additional context

  • Android version: 14
  • WeekView version: 5.3.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions