     }
     
     @IBAction func alarmAction(sender: AnyObject) {
+        timerAlert = NSDate(timeIntervalSinceNow: total!)
         // 1
         let notification = UILocalNotification()
         // 15
         print(timerAlert)
         notification.fireDate = fixedNotificationDate(timerAlert!)
         // 3
-        notification.alertBody = "Tarea pendiente de revision"
-        // 4
-        notification.timeZone = NSTimeZone.defaultTimeZone()
+        notification.alertBody = "Tarea pendiente de revision \(timerAlert)"
+        // 4 
+        
+        //notification.timeZone = NSTimeZone.defaultTimeZone()
         // 5
         //notification.repeatInterval = NSCalendarUnit.Minute
         // 6
-        notification.applicationIconBadgeNumber = 1
+        notification.applicationIconBadgeNumber = UIApplication.sharedApplication().applicationIconBadgeNumber + 1
         // 7
         UIApplication.sharedApplication().scheduleLocalNotification(notification)
     }
     
     func fixedNotificationDate(dateToFix: NSDate) -> NSDate {
         
-        let dateComponents: NSDateComponents = NSCalendar.currentCalendar().components([NSCalendarUnit.Day, NSCalendarUnit.Month, NSCalendarUnit.Year, NSCalendarUnit.Hour, NSCalendarUnit.Minute], fromDate: dateToFix)
-        
-        dateComponents.second = 0
+        let dateComponents: NSDateComponents = NSCalendar.currentCalendar().components([NSCalendarUnit.Day, NSCalendarUnit.Month, NSCalendarUnit.Year, NSCalendarUnit.Hour, NSCalendarUnit.Minute,NSCalendarUnit.Second], fromDate: dateToFix)
+        
+        //dateComponents.second = 0
         
         let fixedDate: NSDate = NSCalendar.currentCalendar().dateFromComponents(dateComponents)!
         

    var pickerNSDate :NSDate?
    var timerAlert : NSDate?
    var t : Task?
    
    
    
    override func viewDidLoad() {

        let timeInterval:NSTimeInterval = currentDate.timeIntervalSinceDate(self.startDate!);
        
        
       
        if let pD = pickerNSDate  {
            let calendar = NSCalendar.currentCalendar()
            let comp = calendar.components([.Hour, .Minute, .Second], fromDate: pD)
