iPhone - current date considering daylight saving
<p>My country is located in GMT+0. We are +1 hour now, because we are in daylight saving.</p>

<p>When I do</p>

<pre><code>[NSDate date];
</code></pre>

<p>it was supposed to return the current date and time, but when I do that, I receive the GMT time not considering the daylight saving. </p>

<p>This is what the docs say about the date command</p>

<p><strong>Creates and returns a new date set to the current date and time.</strong></p>

<p>Why Apple does that to us? Why everything is so complex? Is this a bug? Is there a way to get the current real time the device is on? the same time that is displayed on the device's clock?</p>

<p>My app depends on dates and times and having a wrong date for an user located in a different timezone around the world that is on summertime or wintertime will be a disaster.</p>

<p>Thanks.</p>

<hr>

<p>EDIT</p>

<p>After several answers, I have tried this code:</p>

<pre><code>NSDate *wrongToday = [NSDate date];
NSDateFormatter *dateFormatter = [[[NSDateFormatter alloc] init] autorelease];
[dateFormatter setDateStyle:NSDateFormatterMediumStyle];
[dateFormatter setTimeStyle:NSDateFormatterMediumStyle];

[dateFormatter setTimeZone:[NSTimeZone localTimeZone]];
NSString *currentTime = [dateFormatter wrongToday];

NSDate *today = [dateFormatter dateFromString:currentTime];
</code></pre>

<p>guess what, today = wrongToday...
in other words, no change, I continue to have the wrong date without daylight saving.
what is more amazing is that currentTime shows in NSString the date with daylight saving...</p>

<p>any clues? thanks again.</p>
