0

This question is an exact duplicate of:

There's been a lot of discussion lately about the 1970 iOS bug. How/why does it happen?

Is it due to the UNIX epoch at 00:00:00 1/1/1970, so anything negative causes a crash which Apple never accounted for since that date is way before the iPhone was even considered?

marked as duplicate by Tetsujin, jherran, klanomath, Ɱark Ƭ, grg Feb 16 '16 at 14:42

This question was marked as an exact duplicate of an existing question.

0

According to http://www.macrumors.com/2016/02/15/apple-to-fix-january-1-1970-date-bug-ios/:

Apple has not provided a reason for the bug, but YouTube video maker and programmer Tom Scott speculates that setting the date close to January 1, 1970, which is 00:00:00 in Unix time, may be resulting in an integer underflow -- in this case, a date prior to January 1, 1970.

iOS then handles the underflow by returning the negative integrer to the maximum value, which Scott says results in a date that is some 20 times longer than the universe is expected to last. Scott believes iOS may have difficulties handling this large number, resulting in affected devices crashing.

Not the answer you're looking for? Browse other questions tagged .