I'm generating a date for a JSON file like so:
NSDateFormatter *dateFormatterIso8601 = [NSDateFormatter new];
[dateFormatterIso8601 setDateFormat:@"yyyy-MM-dd'T'HH:mm:ssZZZZZZ"];
[jsonDict setObject:[dateFormatterIso8601 stringFromDate:startDate] forKey:@"start"];
How is it possible that this is producing a JSON file with a date string of 2022-07-12T4:04:23GMT+02:00
? There is a leading 0 missing for the hour.
Is this a known bug?