sanshelly / wsdl2objc

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

Time Zone Issue with dateWithISO8601String #149

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. NSString *s = @"2011-06-09T14:53:37-04:00"
2. [NSDate dateWithISO8601String:s];

What is the expected output?
A date with 2011-06-09 10:53:37 +0000

What do you see instead?
A date with 2011-06-09 18:53:37 +0000

What version of the product are you using? On what operating system?
Version of subversion around June 12, 2011
Mac OSx Tiger in iPhone simulator 4.3

Please provide any additional information below.
After debugging through it appeared the math was correct setting the time zone 
of the "gregorian" date object with (-4:00), for some reason the time zone is 
not applied. 

Original issue reported on code.google.com by TFob...@gmail.com on 16 Jun 2011 at 6:26

GoogleCodeExporter commented 8 years ago
NSDate+ISO8601Parsing.m

Original comment by TFob...@gmail.com on 16 Jun 2011 at 6:28

GoogleCodeExporter commented 8 years ago
My mistake I misunderstood the format. Apparently 14:00 was the time after the 
-4:00.. it was right I was wrong.

Original comment by TFob...@gmail.com on 6 Jul 2011 at 4:14