Skip to content
Snippets Groups Projects
Commit fb19d694 authored by George Nachman's avatar George Nachman
Browse files

Add a date format to the helpful string parser to handle dates like "Tue, 16...

Add a date format to the helpful string parser to handle dates like "Tue, 16 May 2017 06:32:33 UTC".
parent d7c047c4
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -864,7 +864,8 @@ int decode_utf8_char(const unsigned char *datap,
}
 
- (NSDate *)dateValueFromUTC {
NSArray<NSString *> *formats = @[ @"yyyy-MM-dd'T'HH:mm:ss.SSS'Z'",
NSArray<NSString *> *formats = @[ @"E, d MMM yyyy HH:mm:ss zzz",
@"yyyy-MM-dd'T'HH:mm:ss.SSS'Z'",
@"yyyy-MM-dd't'HH:mm:ss.SSS'z'",
@"yyyy-MM-dd'T'HH:mm:ss'Z'",
@"yyyy-MM-dd't'HH:mm:ss'z'",
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment