|
-
March 13th, 2006, 04:56 PM
#1
I have a big timezone problem!
Hi,
I've released a product that utilizes a webservice that recieves a DateTime object as one of its input parameters.
I've only just recently found out that the DateTimes submitted to the webservice from users in other time zones is being changed based on the difference between the server timezone and the users time zone.
For instance, a user at 8:30 Atlantic Time ends up being stored in my database as 5:30 Mountain Time. I need it to be stored in my DB as 8:30, not 5:30.
I figured there would be a simple means to retrieve the TimeZone information from the DateTime object, but alas, this does not appear to be the case. As far as I can tell, I have no access to the timezone that the DateTime object was originally created in.
The timezone information is passed within the outgoing SOAP message. .NET automatically handles the serialization/deserialization of the timezone and modifies the DateTime object that my server recieves... it doesn't give me any chance to handle this.
I can fix this problem by updating the client code, but I'd prefer not to do that as I will have to issue a patch. I would much prefer handling this problem in my web service code.
Does anyone know if this is possible? Do I have access to the TimeZone information of the DateTime object that my WebService recieves?
Thanks.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|