Welcome to the Blazor feedback portal. We’re happy you’re here! If you have feedback on how to improve the Blazor, we’d love to hear it!>
Thanks for joining our community and helping improve Syncfusion products!
The Scheduler displays the current date with custom CSS.
It shows the wrong date depending on local time of day.
When I run my app on an Azure server (Azure uses UTC) it thinks the current date is tomorrow as soon as the local time reaches UTC-8.
The behavior is correct when I run it locally on my own computer. I have tried to control this behavior and it seems to ignore my attempts.
This is a .NET 8 Blazor server app running on an App Service in Azure.
SfSchedule attribute: @bind-SelectedDate="@CurrentDate"
public DateTime CurrentDate { get; set; }
TimeZoneInfo pacificZone = TimeZoneInfo.FindSystemTimeZoneById("Pacific Standard Time");
DateTime dtLocalTimeZone = TimeZoneInfo.ConvertTimeFromUtc(DateTime.SpecifyKind(DateTime.UtcNow, DateTimeKind.Utc), pacificZone);
CurrentDate = dtLocalTimeZone.Date;
Attached: sfschedule markup, screenshot of schedule UI showing date as 20th, and local time being 19th.