NSTimeZone timeZoneWithName缩写在不同设备上显示不同的缩写

NSTimeZone timeZoneWithName abbreviation shows different Abbreviations on different devices

我想在标签上显示 "EDT"。我使用了下面的行,我发现它适用于 iphone6、6+ 和 iphone4 (iOS 7.1)。但是在 iPhone5s(iOS 8.2), iPhone5(iOS 7.1) 上测试它我注意到它显示 "GMT-4"

NSString *labelString = [NSString stringWithFormat:@"%@",[[NSTimeZone timeZoneWithName:@"America/New_York"] abbreviation]]

是不是设备时区相关的问题,或者有人可以指出我哪里出错了。提前致谢。

这是因为设备上设置的时区。不同的设备设置了不同的时区,并在

中进行了此更改
[[NSTimeZone timeZoneWithName:@"America/New_York"] abbreviation]]