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

On the autumn daylight saving date, in Scheduler with UTC timezone, when changing end time to be between 1 and 3 AM the scheduler adds 1 hour to the date #3810

Closed
veselints opened this issue Nov 29, 2017 · 2 comments
Assignees
Labels
Bug C: Scheduler FP: Completed Sync status with associated Feedback Item jQuery SEV: Medium
Milestone

Comments

@veselints
Copy link
Contributor

veselints commented Nov 29, 2017

Bug report

On the autumn daylight saving date, in Scheduler, when the timezone is set to UTC, if changing the end time of an event to be between 1 and 3 AM the scheduler adds 1 hour to the date.

This could be related to #3282

Reproduction of the problem

  1. Go to the following Demo;
  2. Create an event starting at 12 AM on 29 Oct 2017;
  3. Resize the end of the event to 1:30 AM;

Current behavior

The event will be automatically resized to 2:30 AM;
The above will occur in the browser timezone is Europe/Sofia UTC + hours. If another client timezone is tested (UTC -5 US Eastern time for example), one hour will be removed instead (for example 3 AM will be converted to 2 AM).

What happen in this case is:

  • When setting the date it is being created in browser as JavaScript object (always local time):
    Sun Oct 29 2017 01:30:00 GMT+0300 (Eastern Europe Daylight Time)
  • Then, as the Scheduler is configured to be timezone: "Etc/UTC", three hours are added before being sent to the server:
    Sun Oct 29 2017 04:30:00 GMT+0200 (Eastern Europe Standard Time)
  • On the server, the date is saved, but as the 4:30 is already after DST change (occurring at 3:00), whet it is returned to the client only two hours are compensated instead of three. The date is displayed as:
    Sun Oct 29 2017 02:30:00 GMT+0200 (Eastern Europe Standard Time)

Expected behavior

The event is resized to 1:30 AM

Environment

  • **Kendo UI: ** 2019.2.619
  • Browser: all
@racquelar
Copy link

I think the severity should be bumped up to at least a Medium

@racquelar
Copy link

Is there any kind of timeline for when this bug will be fixed? Daylight savings time is coming around again on November 4, 2018. A year later there is still no milestone assigned to this issue. With no workaround, in my opinion this is a real issue to have to deal with every year.

@veselints veselints self-assigned this Dec 29, 2020
@kendo-bot kendo-bot added FP: Planned Sync status with associated Feedback Item FP: In Development Sync status with associated Feedback Item and removed FP: Planned Sync status with associated Feedback Item labels Dec 29, 2020
@kendo-bot kendo-bot added FP: Completed Sync status with associated Feedback Item and removed FP: In Development Sync status with associated Feedback Item labels Jan 8, 2021
@mparvanov mparvanov added this to the 2021.R1.SP.next milestone Jan 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug C: Scheduler FP: Completed Sync status with associated Feedback Item jQuery SEV: Medium
Projects
None yet
Development

No branches or pull requests

5 participants