iphone - Response from server NSDate give me always - 8 hrs -


my server server side response 1 value date value. when client side (iphone) - 8 hrs.

eg. server response 23-may-2013

but client side (iphone) got 22-may-2013 16:00:00

what should do. because our android project use same web-service , got properly.

i don't know problem. there have no formatting. use nslog response value.

try setting locale nsdate

 nslocale *locale_us = [[nslocale alloc] initwithlocaleidentifier:@"en_us"]; [dateformatter setlocale:locale_us]; 

also, setting time zone can too.


Comments

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

IIS->Tomcat Redirect: multiple worker with default -