ios - NSTimeZone timeZoneWithName abbreviation shows different Abbreviations on different devices -
i want display "edt" on label. used below line , found working on iphone6, 6+ , iphone4 (ios 7.1). testing on iphone5s(ios 8.2), iphone5(ios 7.1) noticed showing "gmt-4"
nsstring *labelstring = [nsstring stringwithformat:@"%@",[[nstimezone timezonewithname:@"america/new_york"] abbreviation]]
is device time zone related issue or can point out making mistake please. in advance.
this because of timezone set on devices. different devices had different timezones set , made change in
[[nstimezone timezonewithname:@"america/new_york"] abbreviation]]