I encountered this puzzle recently: How does a 60-second, repeating, NSTimer drift way out of sync with the iPhone’s system clock? The timer was created with a fireDate that was on the even minute with the clock. It fires at 11:02:00 AM and 11:03:00 AM, etc. But users report the timer firing at 1:23:30 PM for example.
(And we are not talking about timers not firing because the run loop mode changed temporarily.)
It turns out that the clue is the word “iPhone”. The NSTimer does not drift from the system clock, the system clock drifts from the NSTimer. The iPhone can have its clock adjusted during the day by the cellular service, especially if the phone goes out of service and comes back. (Changing locations to a different time zone probably triggers it too.)
You can make it happen by just setting the device clock manually. When you pic a new time, it jumps to the hour and minute chosen, but with zero seconds. The iOS honors the repeat rate from the last firing and adjusts the fireDate accordingly.
So if you need to stay tuned to the clock, you’ll need to update the fireDate on the NSTimer when you receive the significant time update notification.