local notification not firing when firing when time ia set in UTC format
2017-08-23 20:23:27 +0000 // time to fire local notification
func schedule_Local_notification(alert_body: String, alertDate: NSDate) {
let notification = UILocalNotification()
notification.timeZone = NSTimeZone.systemTimeZone()
print("local notication scheduled at \(alertDate)")
notification.fireDate = alertDate
notification.alertBody = alert_body
notification.soundName = UILocalNotificationDefaultSoundName
UIApplication.sharedApplication().scheduleLocalNotification(notification)
}
The above function prints the value 'local notication scheduled at 2017-08-23 20:23:27 +0000'
Can anyone help to resolve this issue