pulsejet / memories

Fast, modern and advanced photo management suite. Runs as a Nextcloud app.
https://memories.gallery
GNU Affero General Public License v3.0
3.13k stars 83 forks source link

Google Takeout Migrated Photos are off by a day on the timeline #977

Closed SilleBille closed 9 months ago

SilleBille commented 9 months ago

Describe the bug Photos are sorted based on UTC instead of the photo taken timezone, especially when using Google Takeout migration. As a result, this messes ordering of certain photos in the timeline, causing inconsistency between Google Photos and Memories timeline.

To Reproduce From Google Photos, use an image taken in day prior or next to UTC's current date. For example, Use a photo taken at 9PM PST -- The UTC time will be 5AM next day

Screenshots

Metadata
Memories-bug
Timeline misordering
memories-timeline

Platform:

Additional context The issue was first observed when i migrated photos from Google Takeout and applied the EXIF data. However, the photos that are captured directly from Camera and auto-uploaded don't seem to have this issue.

Sample Image and Json

Image Json Status
IMG_20231127_142203 IMG_20231127_142203.jpg.json Correct
IMG_20231127_210040 IMG_20231127_210040.jpg.json Wrong
IMG_20231127_210054 IMG_20231127_210054.jpg.json Wrong
pulsejet commented 9 months ago

Please include a sample Image+JSON (the files above would be ideal)

SilleBille commented 9 months ago

Please include a sample Image+JSON (the files above would be ideal)

I have included the corresponding files under additional context. Thanks!