Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[bug] timestamp on some extracted files is shifted +1 hour #9

Open
Box333 opened this issue Nov 21, 2024 · 5 comments
Open

[bug] timestamp on some extracted files is shifted +1 hour #9

Box333 opened this issue Nov 21, 2024 · 5 comments

Comments

@Box333
Copy link

Box333 commented Nov 21, 2024

I just noticed, that the timestamp on some extracted files is shifted +1hour.. Trying to figure out why only some files are affected and not all.

@joz-k
Copy link
Owner

joz-k commented Nov 21, 2024

Is this about the difference from the Creation/Modification time stored in the Exif data? And is the difference exactly one hour in every case? I can only speculate about the reason. The timestamp is based on the "Birth" date and "Last Modified" date stored in the binary plist metadata file for a given media file. If other iOS backup extractor solutions have the same problem, then this is an iOS bug (or feature). Maybe the daylight saving time difference or some other reason?

@Box333
Copy link
Author

Box333 commented Nov 25, 2024

i extracted 1000 files and 560 had +1h shifted (i also comapared some of them to the original photo dates on my iphone). it also depends of your local time. If you are in croatia and i am in france you have +1h time diffrence. maybe your code runs on your local time ?

@joz-k
Copy link
Owner

joz-k commented Nov 26, 2024

Yes, I think this issue may have something to do with a photo being taken in a different time zone. The binary plist I use to get the "Birth" and "LastModified" dates for each photo stores these timestamps as a UTC epoch integer. There is no timezone encoded in this timestamp. It's just a number, like 1718373760. Of course, I convert this timestamp from UTC to the user's local timezone.
Can you please confirm that any photos with a shifted creation/modification time attribute were taken in a different time zone than you are in now?

@Box333
Copy link
Author

Box333 commented Nov 27, 2024

no. they were all taken in the same zone. maybe you didnt use 24h format ?

@joz-k
Copy link
Owner

joz-k commented Nov 30, 2024

There is no 12H/24H time handling involved when dealing with these timestamps. Also, a large number of photos would be affected in case of such a trivial error.
I'll keep this bug open. In case something new is discovered. It may also be that this is really an iOS bug.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants