I have this code:
var d = "22/12/1968 01:10:40"
var form : NSDateFormatter = NSDateFormatter()
form.dateFormat = "dd/MM/yyyy HH:mm:ss"
form.timeZone = NSTimeZone.localTimeZone() //Italy
print(form.dateFromString(d)!)
When I execute it I get this:
1968-12-22 00:10:40 +0000
first thing Why do I get "+0000" at end? and why the data format isn't respected?
Second , the time is wrong. It's like the time is setted on London's time , but instead I setted it on my local time zone ( italy). I tested it on iPhone Simulator