Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / ADO.NET / May 2008

Tip: Looking for answers? Try searching our database.

DataSet.WriteXML() time zone not correct

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
ron.skufca@sbcglobal.net - 23 May 2008 15:30 GMT
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??
Moe Sisko - 28 May 2008 08:04 GMT
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??

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.