telerik / kendo-angular

Issue tracker - Kendo UI for Angular
http://www.telerik.com/kendo-angular-ui/
Other
466 stars 215 forks source link

[Scheduler] slotClick arguments are incorrect due to Day Light Savings #4242

Open yanmariomenev opened 6 months ago

yanmariomenev commented 6 months ago

Describe the bug Reported in the following forum post.

Selecting any US time zone (Eastern, Central, or Pacific) and choosing the date of daylight saving change (2nd Sunday of March or November) in Kendo Scheduler versions 2.1.6 to 15.1.0 results in incorrect time values. Specifically, clicking on 2 am to 7am (adjusting for the time zone offset) returns the wrong time.

To Reproduce

  1. Choose a US time zone (Eastern, Central, or Pacific).
  2. Select the date of daylight saving change (2nd Sunday of March or November).
  3. Click on 4 am (adjusting for the time zone offset). Example for testing - https://stackblitz.com/edit/angular-scu6jx If timezone="America/New_York" is added, it will return the correct value. Example - https://stackblitz.com/edit/angular-scu6jx-n8tccv Testing with the following timezone settings on Mac: Screenshot 2024-03-06 at 5 25 36 Screen Recording

https://github.com/telerik/kendo-angular/assets/49076727/553d6bc6-dfd9-4270-93dd-b5691890e2e5