DataSet.WriteXML() time zone not correct

R

ron.skufca

I have a c# app targeting the 1.1 framework that serializes a small
dataset to an XML file. That file is later FTP’ed to another server
about 2 miles away. Both servers time zones are set to (GMT -05:00)
Eastern time (US & Canada) .

Inside the file the date time elements have -06:00 for the time zone
part. E.g.

<Cleared>1899-12-30T09:50:11.0000000-06:00</Cleared>

What happens is when the XML is read back into a dataset on the
receiver side the time is an hour later due to the fact the time zone
in the xml is -06:00 instead of -05:00. I have checked the regional
settings on both servers and they are the same. Also the time on both
servers is off by only 3 minutes.

I set up a simulation environment in our lab and with the same
settings and the output XML is -05:00.

What could be causing the WriteXML to think it is an hour off??
 
M

Moe Sisko

Maybe you could check the following :

In Windows, check the "Automatically adjust clock for daylight saving
changes" tickbox setting on the Time Zone tab of Date and Time properties.
Do the server with the problem, and the lab server have the same settings
for this ?



I set up a simulation environment in our lab and with the same
settings and the output XML is -05:00.

What could be causing the WriteXML to think it is an hour off??
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top