On Sep 23, 1:06 pm, shahid <[email protected]> wrote:
> I am using CSharp.NET on the server side and GWT on the client. I am
> using the DateBox to choose a date and I then do a getTime() to get
> milisecs for the date and send that to the server.
>
> On the server I take the milisecs as a .NET DateTime parameter.
>
> The problem is when I receive the date on the server it is 1 hour
> offset from the one which was selected in the DateBox on the browser
> which I presume is because of the DayLight saving BST time.
>
> What is the best way to avoid this problem in this situation ?

Maybe try the 2-args ctor on the server-side, specifying
DateTimeKind.Utc as teh second argument: 
http://msdn.microsoft.com/en-us/library/w0d47c9c.aspx

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to