NSDateFormatter getting Null

后端 未结 1 1282
挽巷
挽巷 2021-01-26 16:52

I in my project I am getting a string I am passing the string to the dateFormatter but I am getting nil, in the string instead of IST I may get PDT

1条回答
  •  臣服心动
    2021-01-26 17:25

    If you are testing on iOS 6.0+ device/simulator only, test it on below iOS 6.0 device. I think in Ios 6.0+ something is changed related to abbreviations. Abbreviations dictionary in iOS 6.0+ contains different values than in iOS below 6.0.

    0 讨论(0)
提交回复
热议问题