Shun87 / wsdl2objc

Automatically exported from code.google.com/p/wsdl2objc
MIT License
0 stars 0 forks source link

Dates are not serialized correctly (UTC expected) #74

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Create any WSDL that defines object with field of dateTime type and 
generate code from it.
2. Create SOAP object and assign some NSDate to its field. Make sure that 
your local timezone time is not equal to UTC.
3. Try sending the request. See that date is serialized as UTC datetime 
(string has "Z" at the end), however, it contains the local datetime, not 
UTC.

What is the expected output?
Date should be serialized as UTC (or provide the correct zone information).

What do you see instead?
Local date is serialized but marked as UTC.

What version of the product are you using? On what operating system?
Revision 151 from public SVN. Mac OS X 10.6. Generated for iPhone OS 3.x.

Please provide any additional information below.
Attached patch that solves the problem.

Original issue reported on code.google.com by wicha...@gmail.com on 23 Feb 2010 at 7:59

Attachments:

GoogleCodeExporter commented 8 years ago
Fixed in revision 155

Original comment by hasse...@gmail.com on 3 May 2010 at 12:28