![]() | |
![]() |
| | Thread Tools | Search this Thread | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
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 |
#3
| |||
| |||
|
|
Hi, Timezone aware Datetime Datatype are not supported in SQL Server 2000/2005.This feature is proposed to be included in sql server 2008.Till then you will need to manage it on front end.That is in .net winforms.Right now there is nothing you can do at sql server level.Search for "globalization cultureinfo c#" in google and you will tutorials as how to implement in .net winforms. -- Hope this helps. Thanks and Regards. Manish Bafna. MCP and MCTS. "sameer" wrote: 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 |
#4
| |||
| |||
|
|
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 |
#5
| |||
| |||
|
|
Sameer, I am having the exact same problem. I will respond back when I find a solution to it! Thanks, Doug "sameer" wrote: 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 |
#6
| |||
| |||
|
#7
| |||
| |||
|
#8
| |||
| |||
|
|
i have the same problem but it can be solved if u change ur database datatype as datetime to string.............i hope it can be solved |
#9
| |||
| |||
|
|
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 |
#10
| |||
| |||
|
|
read this article ...see if this help you http://support.microsoft.com/kb/842545/en-us "sameer" wrote: 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 |
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
| |