title: Stripping the time out of an NSDate
body: <p>I have seen many version of the following code to remove the time element from an NSDate.</p>
  
  <pre><code>NSCalendar *cal = [NSCalendar currentCalendar];
  NSDate *now = [NSDate date];
  unsigned int intFlags = NSYearCalendarUnit | NSMonthCalendarUnit | NSDayCalendarUnit;
  NSDateComponents *components = [cal components:intFlags fromDate:now];
  
  NSDate *today = [cal dateFromComponents:components];
  </code></pre>
  
  <p>Trouble is it does not work as expected. I am currently in British summertime (BST). If I run this code now, now=@"2012-07-07 19:24:06 +0000"</p>
  
  <p>today=@"2012-07-06 23:00:00 +0000"</p>
  
  <p>What I want to see is today=@"2012-07-07 00:00:00 +0000"</p>
  
  <p>I can only guess that it has something to do with daylight saving. Any ideas?</p>