The issue I am having while converting date string to NSDate. For all other locales, below code is working fine and I can generate the NSDate but when phone settings are set region as Ireland and Time format as 12 Hours at that time it gives nil.
NSString *dateString = @"2018-01-04 05:37:01.74";
NSDateFormatter *dateFormat = [[NSDateFormatter alloc] init];
[dateFormat setLocale:locale];
[dateFormat setTimeZone:[NSTimeZone systemTimeZone]];
[dateFormat setDateFormat:@"YYYY-MM-dd HH:mm:ss.SSS"];
NSDate *date = [dateFormat dateFromString:dateString];