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

TimeZoneOffset Not Working Properly

5 Answers 74 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Marc
Top achievements
Rank 1
Marc asked on 16 Mar 2011, 06:44 PM
2010.3.1109.40

I created a non recurring appointment on March 1 2011 with a start date and time of March 16 2011 at 11am.  After it was created it showed in the scheduler correctly as11am.  However, now that March 16th has come the appointment is shown in the scheduler as starting at noon (1hr ahead of what its suppose to start on).  In the database its stored as "2011-03-15 19:00:00.000", my server time zone is PST (Pacific Standard Time).  I have created my scheduler and data access as outlined here and have a load event as shown below.  Please advise on how to get my events to show properly, its much more than just this event and this is a problem in production right now. 

protected void RadScheduler1_Load(object sender, EventArgs e)
{
    TimeZone localZone = TimeZone.CurrentTimeZone;
    TimeSpan currentOffset = localZone.GetUtcOffset(DateTime.Today);
    this.RadScheduler1.TimeZoneOffset = currentOffset;
}

5 Answers, 1 is accepted

Sort by
0
Nikolay Tsenkov
Telerik team
answered on 22 Mar 2011, 05:47 PM
Hello Marc,

The problem you experience is caused by the fact that the Scheduler does not keep any additional time zone information (the TimeZone in which an appointment is scheduled).
In your case the TimeZone has changed (due to Daylight Saving Time) and the appointment is displayed according to the new TimeZone.

This is something we are going to research on implementing in future development of the control.


Kind regards,
Nikolay Tsenkov
the Telerik team
0
Vladimir
Top achievements
Rank 1
answered on 15 Feb 2012, 12:36 PM
I also have a problem with daylight savings time.
If I create an event for March 30, 13:00 (GMT+1), it is stored in DB in UTC as March 30 11:00 UTC - it is correct because it is DST
but it is displayed at March 30, 12:00 in scheduler now (February 15), because TimeZoneOffset is GMT+1

Does the control support processing DST correctly now ? Or can you advice other way to show events properly ?

0
Peter
Telerik team
answered on 17 Feb 2012, 01:43 PM
Hi Vladimir,

Thank you for reporting this issue. I have logged it and our developers have already began working on it. We will let you know when we fix it.

Greetings,
Peter
the Telerik team
Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
0
Ken
Top achievements
Rank 1
answered on 12 Mar 2012, 04:01 PM
Any update on this issue?
0
Peter
Telerik team
answered on 14 Mar 2012, 03:27 PM
Hi Ken,

Thank you for your inquiry. The issue is still present, but we are currently working on resolving it.

Peter
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
Scheduler
Asked by
Marc
Top achievements
Rank 1
Answers by
Nikolay Tsenkov
Telerik team
Vladimir
Top achievements
Rank 1
Peter
Telerik team
Ken
Top achievements
Rank 1
Share this question
or