NSDateFormatter replacing colons with dots

Hi all


I just put iOS 9 on a device and downloaded my app from the app store.


The affected code is swift code.


When i use a dateformatter with format:

"yyyy-MM-dd'T'HH:mm:ss.SSSSSZZZ"


It translates to

"2015-05-30T10.52.00.00000+0200" instead of "2015-05-30T10:52:00.00000+0200"


Anyone else experiencing this?


I am using a very specific format here, the colons are specified directly, its pretty crazy they would turn into dots...


I have not download the new xcode yet so i haven't seen it in debug mode, but this is what is sent to my backend server from iOS 9.


Thanks in advance

I'm experiencing the same issue with the nsdateformatter.

My colons are also being converted into dots for no apparent reason.

Are you explicitly setting the locale for the date formatter to Posix? If not then it is apparently correct behaviour for the user's locale to affect even explicitly set format strings. See this blog post from Daniel Jalkut for more information: http://indiestack.com/2015/05/predictable-date-formatting/

I tested in xcode 7 built for iOS 9, this works just fine. So it seems i might have to set an app for approval in app store in time for release. I'd rather not though.


Tested in iOS 9 beta 2, on my app from app store too. Bug is still there 😟

Tested in iOS 9 beta 4 now - the bug has been fixed!


Hurraah ✅

NSDateFormatter replacing colons with dots
 
 
Q