0
Xcodeで私のコードは設定しますは、解析上のタイムゾーン(のObjective C)
NSDate *date = [orderObject objectForKey:@"orderDate"];
NSDateFormatter *dateFormatter = [[NSDateFormatter alloc]init];
[dateFormatter setDateFormat:@"dd.MM.YYYY"];
NSString *dateString = [dateFormatter stringFromDate:date];
_orderDate.text = dateString;
しかし、私は順序が解析作る時にUTCタイムゾーンと私のタイムゾーンで更新UTC-6です。
'NSDateFormatter'は、現在のタイムゾーンをデフォルトとすべきです。 timeZoneプロパティを明示的に設定しようとしましたか?現在のタイムゾーン( '[NSTimeZone localTImeZone]')が実際にUTC-6であることを確認しましたか? – CRD