Using objective-c how to convert epoch time to local time zone
I have time in epoch format, I'm converting it to NSDate format the following way,
[NSDate dateWithTimeIntervalSince1970:1288490400] ( for example )
In this example, I'm expecting to see 30th Oct 2010 20:00 hours but I'm getting 31st Oct 2010 12:30 hours, which is 16:30 hours are added.
I'm in UTC/GMT +9:30 hours time zone.
Not sure whether its time zone issue or something else. Is there any way I can force this epoch/unix time to show in local time zone.
Any suggestions/recommendations to fix this issue?
|