Skip to content

Incorrect MonthView 29th of Feb in March #343

@AndreyzZz

Description

@AndreyzZz

Describe the bug
MonthView is shifted by One day (The last day of Month is displayed in a different month but should be an empty collection cell).

To Reproduce

  1. Set TimeZone on iPhone to NY (GMT-5.00)
  2. Init KVKCalendar with style (enclosed below)
  3. Scroll to March 2024 (MonthView)
  4. See error (WeekCells are shifted by 1day)

Expected behavior
29th of Feb in February section;
31st of Jan in January section;

Screenshots
Screenshot 2024-03-06 at 19 57 36
Screenshot 2024-03-06 at 19 57 56

Additional context
let tz = TimeZone(secondsFromGMT:0) style.timezone = tz style.selectedTimeZones = [tz] style.timeline.isHiddenStubEvent = false style.startWeekDay = .sunday style.systemCalendars = ["Calendar1"] style.timeline.scrollLineHourMode = .onlyOnInitForDate(Date()) style.timeline.showLineHourMode = .always style.headerScroll.colorWeekdayBackground = .systemGray6 style.followInSystemTheme = true style.month.selectionMode = .single

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