title: Issues in setting time to uidatepickerview
body: <p>Im working with alarm concept in my app, I used uilocalnotifications, and datepickerview to set time. My datepicker shows time only.</p>
  
  <p>I used the code,</p>
  
  <pre><code>- (void)viewDidLoad {
  datePicker.date = [NSDate date];
  }
  </code></pre>
  
  <p>The time for datepicker is set as the current date but the second value is not set to 0;
  it goes to the second value of the viewdidloaded, ie,for ex, 12:30:14</p>
  
  <pre><code>- (void)scheduleNotification {
  [[UIApplication sharedApplication] cancelAllLocalNotifications];
  Class cls = NSClassFromString(@"UILocalNotification");
  
  if (cls != nil) {
      UILocalNotification *notif = [[cls alloc] init];
  notif.fireDate = [datePicker date];
  notif.timeZone = [NSTimeZone defaultTimeZone];
  notif.alertBody = @"My Alarm";
  notif.alertAction = @"Show";
  notif.soundName = @"Show.mp3";
  notif.applicationIconBadgeNumber = 1;
  
  NSDictionary *userDict = [NSDictionary dictionaryWithObject:reminderText.text
  forKey:kRemindMeNotificationDataKey];
  
  notif.userInfo = userDict;
  
  [[UIApplication sharedApplication] scheduleLocalNotification:notif];
  
  [notif release];
  
  }
  </code></pre>
  
  <p>alarm is set to play w.r.t datepicker</p>
  
  <p>I tried to set the second of datepicker to 0 using the code</p>
  
  <pre><code> - (void)viewDidLoad {
  
  NSCalendar *calendar = [NSCalendar autoupdatingCurrentCalendar];
  
  NSDate *reqdate = [self.datePicker date];
  
  NSDateComponents *dateComponents = [calendar components:( NSYearCalendarUnit |   NSMonthCalendarUnit |  NSDayCalendarUnit )
  
     fromDate:reqdate];
  
  NSDateComponents *timeComponents = [calendar components:( NSHourCalendarUnit | NSMinuteCalendarUnit | NSSecondCalendarUnit )
  
     fromDate:reqdate];
  
  
     NSDateComponents *dateComps = [[NSDateComponents alloc] init];
  
  
  [dateComps setHour:[timeComponents hour]];
  
  [dateComps setMinute:[timeComponents minute]];
  
  [dateComps setSecond:[timeComponents 0]];
  
  NSDate *itemDate = [calendar dateFromComponents:dateComps];
  
  datePicker.date = itemDate;
  
  }
  </code></pre>
  
  <p>But if I set the alarm suddenly the notifier fires the alarm , I didnt know whats happening here,</p>