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]] 

Popular posts from this blog

c# - ODP.NET Oracle.ManagedDataAccess causes ORA-12537 network session end of file -

matlab - Compression and Decompression of ECG Signal using HUFFMAN ALGORITHM -

utf 8 - split utf-8 string into bytes in python -