Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
2094
Handling Different Timezones
posted

Hi,

If I have a Server/Client application which uses WinSchedule & UltraDayView and it is operated in two different timezones.....  how can I ignore the timezones???

 

Eg:    Server Timezone = UTC +5 hours
         Client #1 Timezone = UTC +5 hours
         Client #2 Timezone = UTC +6 hours

When Client #1 makes an appointment at 8AM....it appears on Client#2 to be at 9AM. Obviously the appointments start/end time is relative to each Client computer..... but how can I stop this happening....

If they make an appointment at 8 at one location then I want it to appear at 8 at all locations REGARDLESS of timezone settings on thier computer?

Unfortunately.... unlike the "UltraWebInfo"  there does not seem to be a TimezoneOffset setting.

Any ideas?

regards
Aaron

 

 

Parents Reply Children
  • 2094
    Offline posted in reply to Brian Fallon

    I still can't believe this issue was fixed so simply... I spent a couple of days scouring the web/msdn/blogs etc for answers solutions.

    I did have some question marks about whether the MS Article: http://support.microsoft.com/kb/842545 was still relevent as it says it is for .NET 1.1. However at the same time there is NO good information/articles on what the DateTimeMode Property does so it was relieving to find that this property worked for me.

    Brian Fallon"]Note that I recently had to add a new property, DateMemberDeserialization, to work around an MS bug in the SoapFormatter class whereby a DateTime's status as either a local or universal time is not preserved during the serialization process. This might not affect you but if necessary, you can use this property to prevent WinSchedule from picking up the wrong DateTimeKind as it might because of this bug.

    I am using Binary Serialization over TCP so as you said this won't affect me. But... from reading... this seems to be a common problem for people who are merging datasets/tables. When you merge a Typed Dataset with an untyped dataset for instance... the DateTimeKind setting in the Typed dataset takes precedence. Although this is not the bug you describe... this is just a note for those people who might read this forum later.

    Thanks for your help as always Brian... really appreciate it!

    Regards
    Aaron