I hav a string e.g. 2010-09-24
. Now I want this string read as it is in an other timezone as I am. So I create an NSDateFormatter
and set it's time zone e.g. to Europe/Berlin
. What I get back is an NSDate object adjusted (2010-09-23 18:00:00
) to my local time zone (e.g. America/New_York
).
But I want an NSDate
in the time zone Europe/Berlin
with the time value 2010-09-24 00:00:00
. How can I do this?
I tried to set the defaultTimeZone to Europe/Berlin
during the [dateFormatter dateFromString:@"2010-09-24"]
but when I change back the timeZone to my local time zone the NSDate
object changes too.