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
Post a Comment