Problem with different time zone

  • Thread starter Thread starter Anniech
  • Start date Start date
A

Anniech

I need to call a webservice in a windows application by passing some
parameters and gets a dataset from the SQL service through the
webservice to print a report. However whenever there are datetime
field in the dataset, the webservice automatically add/minus the time
gap if the server is set in a different time zone. There is no such
need in our project because we just want to get an absolute time and
we want to avoid error in case users set the timezone wrongly.

Is there any way to skip the timezone correction of webservice? :?
Thank you!
 
Anniech,
Oddly enough an article was just posted on MSDN about DateTime type & time
zones, I have not had a chance to completely read it yet.

http://msdn.microsoft.com/netframew.../library/en-us/dndotnet/html/datetimecode.asp

Hope this helps
Jay


Anniech said:
I need to call a webservice in a windows application by passing some
parameters and gets a dataset from the SQL service through the
webservice to print a report. However whenever there are datetime
field in the dataset, the webservice automatically add/minus the time
gap if the server is set in a different time zone. There is no such
need in our project because we just want to get an absolute time and
we want to avoid error in case users set the timezone wrongly.

Is there any way to skip the timezone correction of webservice? :?
Thank you!
 
Back
Top