Start date on new appointment changes after the appointment is saved

4 posts, 0 answers
  1. Chris
    Chris avatar
    7 posts
    Member since:
    Dec 2006

    Posted 01 Aug 2013 Link to this post

    I have a scenario that one of my users encounters from time to time.  Here is the scenario.

    1. User double-clicks on the scheduler at 10:00 a.m. and the New Appointment dialog shows.  The start time is 10:00 a.m.
    2. User changes the end time by using the date/time picker.  Then clicks the "close" button on the picker.  In this case they selected 11:00 a.m.
    3. User clicks "OK" to save the new appointment.
    4. The appointment is saved, but when I refresh the scheduler the start time is switched from 10:00 a.m. to 9:00 a.m.
    5. They update the appointment to start at 10:00 a.m., save and the scheduler now shows the correct time.

    Couple of notes:
    • User is in the Eastern time zone and our servers are located in Central time zone.  So her 10:00 a.m. on her computer is actually 9:00 a.m. on our server.
    • Silverlight 5
    • Telerik version Q2 2013

    I am unable to recreate the issue and it seems to be somewhat isolated by user.  Have anyone seen this behavior before?

  2. Ventzi
    Ventzi avatar
    114 posts

    Posted 05 Aug 2013 Link to this post

    Hello Chris,

    We are not aware of such bug. We've tried to reproduce the problem, but unfortunately we couldn't. You've mentioned that the issue is happening from time to time and it would be very helpful if you could give us some more information what is doing the user differently then other times. I fear that without reproducing the issue on our sides we will not be able to provide more assistance.
    For now we could suggest you to get the latest Q2 SP1 binaries.

    We are looking forward to hearing from you.

    Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
    Sign up for Free application insights >>
  3. Chris
    Chris avatar
    7 posts
    Member since:
    Dec 2006

    Posted 06 Aug 2013 Link to this post


    I was finally able to recreate this issue.  I had to set my time zone to Eastern time on my computer and then I saw the issue.  I only see the issue on our test/production site.  When I run locally I do not see the issue - I'm guessing it is because both the server and client are running on the same machine.

    I also tried Mountain time and it switched the time there, too.

    We have used the scheduler for 18 months in production and only recently (after upgrading) have we been noticing this.  I'll try upgrading to SP1 to see if that helps.

    One other thing we have noticed.  If I manually change the start time or end time those times "stick" to what I have selected.  If I don't change either of those and accept the default values the start time and end time both adjust (per the time zone).

    I'll keep investigating.  Anything I should look at in terms of Time Zones as it relates to the scheduler?

  4. Chris
    Chris avatar
    7 posts
    Member since:
    Dec 2006

    Posted 06 Aug 2013 Link to this post


    I think I finally figured out what was happening.  I had some custom code that launched the new appointment dialog window and initialized the start and end times.  I updated this code to use DateTime.SpecifyKind with DateTimeKind.Unspecified so that the Entity Framework didn't mess with my times.  That did the trick!

    if (HelperFunctions.SelectedAppointmentStartTime() != null)
        Start = DateTime.SpecifyKind(Convert.ToDateTime(HelperFunctions.SelectedAppointmentStartTime()),
Back to Top