The following code works on the simulator but doesn't on devices. I tried to replace Z with xx with no luck. Any help appreciated.
Thanks.
func convertDateStringToNSDate(dateString: String) -> NSDate {
var dateFormatter = NSDateFormatter()
// Sat, 20 Jun 2015 16:50:20 +0200
dateFormatter.dateFormat = "EEE, dd MMM yyyy HH:mm:ss xx"
let date: NSDate = dateFormatter.dateFromString(dateString)
return date
}