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

Scheduler time mismatch using TimeZoneID, TimeZoneOffset, EnableTimeZoneEditing

2 Answers 101 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
MfE_Developer
Top achievements
Rank 1
MfE_Developer asked on 25 Jun 2012, 04:26 AM
Hell Telerik,

I have recently updated to ASP.NET AJAX Q2 2012 update (previously on Q3 2011)
We have used the Scheduler and specified Advanced form attributes on our application.

After the update (mentioned above) I found that when a New Appointment is created, (double clicking on a timeslot on the calendar) it should show "PM" instead of the "AM" time that was chosen.
(see attached screenshot)

I had found that the update had appended TimeZoneID, TimeZoneOffset into the <telerik: RadScheduler> tag and also inserted EnableTimeZoneEditing into the <AdvancedForm> tag.

To work around this problem I found that once the above 3 tags were removed the scheduler would pick up the time correctly
i.e. 9.00 AM intead of 9.00 PM

The values for the above attributes were:
  • TimeZoneID = "New Zealand Standard Time"
  • TimeZoneOffset = "12:00:00"
  • EnableTimeZoneEditing = "True"

Am I missing something in configuration? (or possibly a bug?)

Thanks.







2 Answers, 1 is accepted

Sort by
0
Ivana
Telerik team
answered on 28 Jun 2012, 07:34 AM
Hello,

I have tested the specified scenario, but I was unable to replicate the issue in question. Here is what I have tested:
<telerik:RadScheduler ID="RadScheduler1" runat="server" TimeZoneOffset="12:00:00"
    TimeZoneID="New Zealand Standard Time" GroupBy="Room" GroupingDirection="Vertical">
    <AdvancedForm EnableTimeZonesEditing="true" Modal="true" />
</telerik:RadScheduler>
The start and end time in the advanced form are fetched from the time slot's start and end time on which the user has clicked in order to create an appointment.

Could you try to isolate the problem in a sample project  and send it over via a support ticket, so we would be able to troubleshoot the issues locally?

All the best,
Ivana
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.
0
MfE_Developer
Top achievements
Rank 1
answered on 10 Jul 2012, 09:58 PM
FYI: Just to update everyone this is a known issue - the workaround is to put the following in (per Telerik support)

protected void Page_Load(object sender, EventArgs e)
       {
           if (!IsPostBack)
           {
               RadScheduler1.SelectedDate = DateTime.Now.Date;
           }
       }
  
       protected void RadScheduler1_NavigationComplete(object sender, Telerik.Web.UI.SchedulerNavigationCompleteEventArgs e)
       {
           if (e.Command == Telerik.Web.UI.SchedulerNavigationCommand.SwitchToSelectedDay)
           {
               if ((RadScheduler1.SelectedDate - DateTime.Now.Date) == new TimeSpan(1, 0, 0, 0))
               {
                   RadScheduler1.SelectedDate = DateTime.Now.Date;
               }
           }
       }
Tags
Scheduler
Asked by
MfE_Developer
Top achievements
Rank 1
Answers by
Ivana
Telerik team
MfE_Developer
Top achievements
Rank 1
Share this question
or