I'm having a strange issue with NSDateFormatter. I'm using a fixed dateFormat string of yyyyMMdd-HHmmss, but on my iOS device (only; its fine in Simulator or on Mac) I get an extra AM/PM added to the string, and also missing leading zeros for the time portion:
where I'd expect (and elsewhere get)
any ideas what I could be missing? Both my Mac and my test phone are set to 12-hour time, but as I understand it local settings should not matter when providing a dateFormat string...
Code Block language dateFormat: "yyyyMMdd-HHmmss" result 20200725-22454 PM
where I'd expect (and elsewhere get)
Code Block language dateFormat: "yyyyMMdd-HHmmss" result 20200725-022454
any ideas what I could be missing? Both my Mac and my test phone are set to 12-hour time, but as I understand it local settings should not matter when providing a dateFormat string...