Dataset from webservice - datetime columns are having offsets applied
Posted on 2009-04-14
We have a client app which gets its data from a server. We use web services to run sql statements and a dataset is returned which contains the information.
The client app is used in different countries and the problem we have is that when the dataset is returned, all date columns are having timezone offset's applied. How can we stop this without having to modify the client application? Is there a setting inside the web service or server i can use instead? Changing regional/date settings on the client machine is completely out of the question.
At the moment, whenever we request a date column, we have to select it in sql like this; "Select convert(varchar, datecol) datecol from sometable"
Its not ideal...