savvasdalkitsis / uhuruphotos-android

🖼️A modern media gallery, with features like backup/sync, semantic search, media map, face recognition, memories and much more built using the latest Android technologies.
https://uhuru.photos
Apache License 2.0
358 stars 26 forks source link

Wrong timezone causes duplicate photos #447

Open nagarrido opened 1 year ago

nagarrido commented 1 year ago

When I take a photo, before uploading the server the photo shows the time shifted to the GTM+0 time (I live in a GTM-4 zone). After I upload the photo to the server, the time is corrected.

This leads to a strange behaviour: if a photo is taken after 8pm (which would be labeled as the next day, because it uses the GTM+0 time) and I also upload it, the photo appears twice in the feed. An unsynced version with the date for the next day, and a synced version with the correct date. I will upload a screenshot later.

nagarrido commented 1 year ago

Screenshot_20230826_233735_Photos.jpg

Notice the last photo in my feed

savvasdalkitsis commented 1 year ago

Yap I saw this the other day when debugging a problem with cloud sync ending in an infinite loop. This is the underlying problem.

Will be fixed soon

nagarrido commented 8 months ago

Any chance to re open this issue? I believe it is happening again

savvasdalkitsis commented 6 months ago

I think this is now fixed in v0.0.198

Can you check if your problem is fixed @nagarrido ?

nagarrido commented 5 months ago

Hey, sorry for the late reply. Still happening 😓 should I provide some logs for uploading photos in which this happens?

nagarrido commented 5 months ago

Correction: it is not happening at the moment. I had some photos without timestamp so they didn't show as synced in the feed, so I though the issue was still there. But the issue regarding timezones seems to be gone!

BOOtak commented 3 weeks ago

Hi. I probably caught the similar issue on 0.0.227

pic

First picture has timestamp Sep 15, 02:09 Second one has (correct) timestamp Sep 14, 23:09

Looks like a timezone-related issue. My TZ, both on server and on the phone is UTC+3.

For some reason, web version of librephotos shows incorrect time (Sep 15 02:09) as well

pic1

The funniest twist is that while doing so, it still shows that picture among others from Sep, 14:

pic2

Could it be a Librephotos issue? The other version is the source of the timestamp (file metatada / EXIF data) conflict.

I can provide the picture in question if required