A more independent way would be to send time in the second instead of any format to your web server,
NSDate *now = [NSDate date];
NSTimeInterval inSecond = [now timeIntervalSince1970];
inSecond - type double, and let your web server calculate the time from the second message you sent.
source
share