How to convert long timestamp to UTC timestamp on Objective C
- by David
Hey
I had a iphone app, the code has a method to retrieve current time stamp from iphone and upload to server.
Here is my code:
long long timestampMillis = (long long)([[NSDate date] timeIntervalSince1970] * 1000);
However, one of customer use the app in Japan sent data shown on server is tomorrow time. How can I retrieve UTC timestamp?
Thanks advanced