Sunday 18 August 2013

iOS - Converting time and date to user time zone

iOS - Converting time and date to user time zone

I am sending some requests on a webserver that replies me time and date
like this:
"at 18:58 of 05/08/2012"
I can figure out how to get the time and the date in 2 NSStrings(18:58,
05/08/2012). Note that the server's time zone is +00:00. What I want to
accomplish is to present this time based on user's location. So for
example if the reply from server is 23:30 at 05/08/2012 and the user's
time zone is +2:00 I want to present him 1:30 at 06/08/2012. Any ideas?

No comments:

Post a Comment