Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > DateTime not serialized as ISO8601 if initialized from MySQL datetime

Reply
Thread Tools

DateTime not serialized as ISO8601 if initialized from MySQL datetime

 
 
rlaemmler@gmail.com
Guest
Posts: n/a
 
      01-27-2006
Hi,

I just migrated my web app to .NET 2.0. Part of the app creates some
business objects from a MySQL query which is returned by a web service.
Some of those objects contain DateTime properties. Using .NET 1.1 soap
serialized a DateTime always in the ISO8601 format. e.g.
"2006-01-27T07:42:11.3014976-08:00". Now using .NET 2.0 suddenly the
DateTime objects instanciated from a MySQL query get serialized as
"2006-01-26T18:40:56". Only DateTime objects instanciated from code
e.g. DateTime.Now get fully serialized in the ISO8601 format.

Does anybody know why this happens and how to make sure the Soap
serializer always uses ISO8601?

Thanks for your help!

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
datetime iso8601 string input Rubic Python 11 03-27-2006 11:51 AM
Timezone and ISO8601 struggles with datetime and xml.utils.iso8601.parse Samuel Python 2 09-09-2005 06:23 PM
Converting ISO8601 format to Date Jim Davis Javascript 6 09-01-2005 03:45 PM
Problem with Time.iso8601 Chris Morris Ruby 4 08-11-2005 01:36 AM
datetime: .datetime-.datetime = .timedelta, .time-.time=TypeError ? Christos TZOTZIOY Georgiou Python 3 09-13-2003 10:44 AM



Advertisments