0

I've read this tutorial and this question, but when i use NSDate() or CFAbsoluteTimeGetCurrent() it is easy to trigger by the user setting the clock forward.

If i use CACurrentMediaTime(), the countdown seems not accurate at long time (1 hour or more).

How can I check the passed time correctly? I must check the time in a server? How?

Thanks

Community
  • 1
  • 1
Simone Pistecchia
  • 2,746
  • 3
  • 18
  • 30

1 Answers1

0

You can use a free service such as http://timezonedb.com/api to get the current time. You just need to register for a free API key. No need to add all the extra time of implementing your own server for a simple task like getting the time

Chris
  • 7,270
  • 19
  • 66
  • 110