H
Haim
I have a web service which is syncronizing two Access (mdb) databases.
The web service accepts a dataset. Adds the data to a table on the
server and then returns the dataset with the server's id fields to the
client, and the client is updated.
Pseudo code as follows:
Webservice
Public function updateserver(inDS as dataset) as outDS as dataset
' all rows in inDS are in datarowstate.Added
myDataAdaptor.update(indS)
outDS = Routine with fills dataset and modifies a field to give all rows
datarowstate.modified
Return outDS
End function
This works fine when the server is my local machine. But when I deploy
the service to a remote webserver, A date field looses one day. i.e. a
field with the data March 12, 2004 is inserted to the Server's table as
March 11, 2004. The error occurs with the myDataAdaptor.update. there
is nothing wrong with the SQL as it works on the local machine and is a
very simple insert statement.
If I return the dataset without requerying the server, the dates return
unchanged.
There might be a European, US date problem, as the client is using
European dates and the server is somewhere in US (I assume), but I would
expect the dates to be completely destroyed instead of consistantly
loosing 1 day on update.
This is driving me crazy.
Haim
The web service accepts a dataset. Adds the data to a table on the
server and then returns the dataset with the server's id fields to the
client, and the client is updated.
Pseudo code as follows:
Webservice
Public function updateserver(inDS as dataset) as outDS as dataset
' all rows in inDS are in datarowstate.Added
myDataAdaptor.update(indS)
outDS = Routine with fills dataset and modifies a field to give all rows
datarowstate.modified
Return outDS
End function
This works fine when the server is my local machine. But when I deploy
the service to a remote webserver, A date field looses one day. i.e. a
field with the data March 12, 2004 is inserted to the Server's table as
March 11, 2004. The error occurs with the myDataAdaptor.update. there
is nothing wrong with the SQL as it works on the local machine and is a
very simple insert statement.
If I return the dataset without requerying the server, the dates return
unchanged.
There might be a European, US date problem, as the client is using
European dates and the server is somewhere in US (I assume), but I would
expect the dates to be completely destroyed instead of consistantly
loosing 1 day on update.
This is driving me crazy.
Haim