Hello Guys,
I'm in dire need of help.
After the DST changes yesterday, all appointments schedules are off by 1 hour. I have already downloaded and installed the latest DST patch for 2008, restarted the server, restarted IIS but the problem remains. Our company relies heavily on our Web Schedulling application and any help or suggestions will be greatly appreciated.
Regards,
Jason
Hey Jason,
WebscheduleInfo actually has a property called TimeZoneOffset. If a user doesn't set it, it defaults the the server time. Since i'm assuming your server time had DST applied, all of your appointments will be off 1 hour. All you should need to do, is set the TimeZoneOffset to what it was before the DST was applied, and you should be good to go.
Hope this helps,
-SteveZ
I'm not sure I understand your solution.
Are you suggesting that we need to keep track of when events were added and then modify this TimeZoneOffset in order to spoof the control into thinking it's the correct time? Or do we just need to keep track of when DST has occurred?
You comment of "All you should need to do, is set the TimeZoneOffset to what it was before the DST was applied" sounds to me like next time the DST changes I will need to go back into my code and change this TimeZoneOffset back to what it was before? This doesn't sound like a very practical solution.
Do I just need to keep track of the current status of DST and then adjust the TimeZoneOffset accondingly? Here some example code of how I am attempting to solve this problem, although it seems like something that should be part of the control already.Any feedback on this would be helpful.
if (DateTime.Now.IsDaylightSavingTime()) myWebScheduleInfo.TimeZoneOffset = new TimeSpan(Properties.Settings.Default.LocalTimeZone, 0, 0);else myWebScheduleInfo.TimeZoneOffset = new TimeSpan(Properties.Settings.Default.LocalTimeZone - 1, 0, 0);