user2772629
user2772629

Reputation: 31

Find correct time on iOS device

I want to find out correct time on iOS devices even though user have set wrong time manually. In the setting->General->Date & Time there is option of Set Automatically if that option is uncheck by the user then how can i find the correct time programmatically.

Upvotes: 1

Views: 791

Answers (3)

Sandman
Sandman

Reputation: 2745

I have a 'web service' on my site which serves you the current time in milliseconds since the Unix epoch, one request, one response, nothing else.

Upvotes: 0

Ravindra Singh
Ravindra Singh

Reputation: 50

I think this is the wrong place for this question. Try Apple's forums.

Because there is no way to get current time form ios device when user update time manually.

Sweet & smart .........

Upvotes: -1

Grzegorz Krukowski
Grzegorz Krukowski

Reputation: 19802

Use NTP protocol for getting a current time or serve a time from your server and get it on application launch.

Apple doesn't provide by default any way to get time from NTP unfortunately and all time related function are using local time that user can change.

Upvotes: 3

Related Questions