Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect MonthView 29th of Feb in March #343

Open
AndreyzZz opened this issue Mar 7, 2024 · 1 comment
Open

Incorrect MonthView 29th of Feb in March #343

AndreyzZz opened this issue Mar 7, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@AndreyzZz
Copy link

AndreyzZz commented Mar 7, 2024

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

@AndreyzZz AndreyzZz added the bug Something isn't working label Mar 7, 2024
@kvyatkovskys
Copy link
Owner

Hi @AndreyzZz!
Thank you for the issue! I'll check and try to fix in the next release

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants