title: Local Notification set fire time
body: <p>I want to set the daily alarm on the bases of user input. Like user will select time from date picker "10:30", Then i need to set alarm at a that time daily. I write the following code:</p>
  
  <pre><code>func setAlarmAtTime(#time:NSString, withMessage message:NSString){
      var loacalNotification = UILocalNotification();
      var calendar = NSCalendar.currentCalendar();
      calendar.timeZone = NSTimeZone.localTimeZone()
      var components = calendar.components(NSCalendarUnit.CalendarUnitYear | NSCalendarUnit.MonthCalendarUnit | NSCalendarUnit.DayCalendarUnit, fromDate: NSDate.date());
      NSLog("%@",NSDate.date())
      NSLog(time);
      var timeComponents = time.componentsSeparatedByString(":");
      components.hour = timeComponents[0].integerValue;
      components.minute = timeComponents[1].integerValue;
      if components.isValidDateInCalendar(calendar){
          var fireDate = calendar.dateFromComponents(components);
          NSLog("%@",fireDate!);
          loacalNotification.repeatInterval = NSCalendarUnit.CalendarUnitDay;
          loacalNotification.timeZone = NSTimeZone.localTimeZone();
          loacalNotification.fireDate = fireDate;
          loacalNotification.repeatInterval = NSCalendarUnit.CalendarUnitDay;
          loacalNotification.soundName = UILocalNotificationDefaultSoundName;
          loacalNotification.alertBody = message;
      }
  </code></pre>
  
  <p>But it shows different time based on time zone following are the behaviour when i try to set alarm at 6:40:</p>
  
  <pre><code>Current Date:  2014-08-12 12:07:21 +0000
  Alarm Time: 6:40
  Fire Date: 2014-08-12 01:10:00 +0000
  </code></pre>
  
  <p>I tried to set time zone to local as well as current but nothing works :(</p>