UTC String to Date and UTC Time Calculations
问题 I have a string, that I know will be reference to an UTC timestamp @"2016-01-20T17:00:00" now when converting it to an actual NSDate it returns this when printed out: NSLog("%@", [TimeHelper stringToDateInUtc:@"2016-01-20T17:00:00"]); -> 2016-01-20 18:00:00 +0000 Same thing with a UTC date: NSLog(@"Time in UTC Now: %@", [TimeHelper getNowUtcAsDate]); I also have this method for getting the current time in UTC and convert the string to UTC: + (NSDate*) stringToDateInUtc:(NSString*)str {