I am trying to get current date in Swift using NSDate(). When I create breakpoint and stop application, I can see that there is 3 hours difference with devices' system time. Application is running on real iPhone. How to fix this?
I also wrote the following in App Delegate to be sure:
NSTimeZone.setDefaultTimeZone(NSTimeZone(name: "Europe/Kiev")!)
But it still does not work.
Aucun commentaire:
Enregistrer un commentaire