S
sameer
Environment : framework 1.1, winforms, webservices, sql server 2000
Architecture of the application : database is hosted behind the webserver.
Client winforms application is installed on the client machine and webservice
are used to transfer the data from the client exe to the database over the
internet. Database\ webserver server is running on GMT time where as the
client machines can be running on any time zone. Ado.Net Datasets are used to
transfer the data between the client machine to the database over the
webservice.
Here is my problem :
Lets say client EXE is running on a machine that has Eastern time zone, user
modifies a date which is now '6/23/2007 4:20:30', this modifications along
with the others mdifications user has done are put in a dataset and send
across the webservice to the database( where the timezone is different and is
GMT), so here is the problem, seems when the webservice gets this dataset it
automatically converts the datetime from Easter to GMT and saves it to the db
i.e the new datatime is '6/22/2007 11:20:30' ( 5 hrs behind of the easter). I
want the same date that the user selects to be saved in the database without
any conversions. Any suggestions on how i can do this? the client exes can be
running on all different timezone worldwide
Please suggest.
thanks
Architecture of the application : database is hosted behind the webserver.
Client winforms application is installed on the client machine and webservice
are used to transfer the data from the client exe to the database over the
internet. Database\ webserver server is running on GMT time where as the
client machines can be running on any time zone. Ado.Net Datasets are used to
transfer the data between the client machine to the database over the
webservice.
Here is my problem :
Lets say client EXE is running on a machine that has Eastern time zone, user
modifies a date which is now '6/23/2007 4:20:30', this modifications along
with the others mdifications user has done are put in a dataset and send
across the webservice to the database( where the timezone is different and is
GMT), so here is the problem, seems when the webservice gets this dataset it
automatically converts the datetime from Easter to GMT and saves it to the db
i.e the new datatime is '6/22/2007 11:20:30' ( 5 hrs behind of the easter). I
want the same date that the user selects to be saved in the database without
any conversions. Any suggestions on how i can do this? the client exes can be
running on all different timezone worldwide
Please suggest.
thanks