dsouzarc / iMessageAnalyzer

Analyzes a user's iMessage
348 stars 43 forks source link

Datetime issue #7

Open daramunnis opened 7 years ago

daramunnis commented 7 years ago

Hi, This is a fantastic app, great info. When I run it on my Mac messages app, it runs flawlessly. However, the messages on my phone go back a good bit further. So, I ran a backup of my phone and pointed it at that instead. When it runs from the backup, all the dates on the messages are all over the place, with dates running from 1940 to 2068 and everywhere in-between. Anything I'm doing wrong? Thanks, Dara

R167 commented 7 years ago

At a guess, this is likely due to Apple changing their internal representation to be nanoseconds from the millennium epoch as opposed to their old implementation of seconds from the epoch (change likely made to solve issues of display when messages sent in very quick succession, etc. and probably to deal with attempts at iCloud sync). Would require a change to detect if the DB has been converted/created post iOS11/OSX10.13 for parsing the newer date format.