-
Notifications
You must be signed in to change notification settings - Fork 814
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
Calendar day view shows all day events the day prior when timezone is UTC < 0 #2039
Comments
Hi @Brechard, We have checked the events with timeZone as UTC<0 and tried to replicate in SfCalendar with version 26.2.12 by enabling the timeZone property. However, we were unable to reproduce it on our end. Please check the attached sample, and if you are still experiencing the issue, we request that you replicate it in the attached sample and provide us with more details regarding the specific scenario in which you are encountering this issue. This will help us to assist you more effectively. Sample : gh_2039.zip Regards, |
Hi @ThilipChandru sorry I was probably not clear enough with the bug. The problem arises when the phone timezone is set to < 0, not the timezone of the event, the event data is in UTC, it is an ALL DAY event, and the phone timezone is set to < 0. To replicate the issue you need one simulated phone with UTC > 0 timezone, and the other simulator with timezone UTC < 0. And here is the code that you execute in both phones:
|
Hi @Brechard, We have analyzed your query and identified that the issue occurs because timezone is not applicable for all-day appointments, which causes them to span two dates when the appointment timezone and the device timezone is differ. To resolve this, you can use the timezone property in SfCalendar and display the appointments based on the timezone provided in the SfCalendar. For more details, please refer the following UG: https://help.syncfusion.com/flutter/calendar/timezone#create-appointment-in-different-time-zones Regards, |
Bug description
When using the calendar view on the day CalendarView.day and the phone is on a timezone that is on UTC < 0 (e.g. America) the events that are full day are shown the day before they should (e.g. an event with date: 2024-08-27 00:00:00.000Z is shown the 26th August instead of the 27th).
I have tried every view and the error only happens on the daily one, and it only happens when the timezone is in UTC < 0, all the rest work properly.
Steps to reproduce
Code sample
Code sample
[Add your code here]
Screenshots or Video
Screenshots / Video demonstration
[Upload media here]
Stack Traces
Stack Traces
On which target platforms have you observed this bug?
Android, iOS
Flutter Doctor output
The text was updated successfully, but these errors were encountered: