I’m trying to get the current date with :
NSLog(@"DATE NOW : %@", [NSDate date]);
But when I execute it, I have a difference of one hour between the date displayed and the current date.
Log http://data.imagup.com/12/1171458807.5637png
I found topics on questions like that but none of them gave me the answer.
How can I change that ?
You need to set the proper timezone. The default, as you can see, is UTC.
You can use a date formatter for doing that.
For a list of available timezones you can use
or check out the constants here on this Rails doc page.