This is a migrated thread and some comments may be shown as answers.

Problem with BST time change

1 Answer 159 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Myles
Top achievements
Rank 1
Myles asked on 03 Apr 2020, 06:38 AM

Hi there,

I've just noticed that the events from the scheduler are now an hour out.  This seems to be due to the time changes in the UK due to BST.  For example, if I create and save an event for 08:00 - 08:30 the event data on inspection shows:

 

start: Fri Apr 03 2020 08:00:00 GMT+0100 (British Summer Time) {}
startTimezone: null
end: Fri Apr 03 2020 08:30:00 GMT+0100 (British Summer Time) {}
endTimezone: null
isAllDay: false

 

Due to the GMT+0100 the event is actually getting displayed on the scheduler in the 07:30 - 08:00 slot.  How should I configure the Scheduler to deal with these time differences?  I've tried implementing a fixed timezone for GMT but this doesn't work e.g. import '@progress/kendo-date-math/tz/Europe/London';

Regards

Myles

 

1 Answer, 1 is accepted

Sort by
0
Myles
Top achievements
Rank 1
answered on 05 Apr 2020, 10:17 AM
The problem was actually with the backend.  The solution was to change the SQL and .NET type for dates from DateTime to DateTimeOffset
Tags
Scheduler
Asked by
Myles
Top achievements
Rank 1
Answers by
Myles
Top achievements
Rank 1
Share this question
or