scubajeff / lespas

Les Pas, photo album app for Nextcloud user
Apache License 2.0
435 stars 22 forks source link

Timestamp / Creation Date when moving from phone or backup #174

Open GottHeit opened 2 weeks ago

GottHeit commented 2 weeks ago

Describe the bug If moving a picture to a remote album it is always getting the "now"-timestamp. It happens when moving from phone and/or backed up pictures from camera roll. Didn´t except this to happen, at least from backup, as they are already uploaded to nextcloud - where they have the correct timestamp.

To Reproduce Steps to reproduce the behavior:

  1. Go to 'Gallery'
  2. Click on 'Picture' and choose 'Moving' and select Remote Album to move to
  3. Check timestamp of picture in remote album
  4. See error

Expected behavior As written at least the timestamp of already uploaded pictures in backup should be kept. Better if every picture moved to an remote album keeps its timestamp.

Screenshots Screenshot_20240622-095233 timestamp on phone

Screenshot 2024-06-22 095451 timestamp of backup in nextcloud

Screenshot_20240622-095544~2 moving to remote album

Screenshot 2024-06-22 095650 timestamp after moving

Smartphone (please complete the following information): Pixel 5 Android 14 2.9.10

Mabe I am overlooking something, so would be grateful if pointed to the right direction :)

If not it would be great if this would be possible as I really like the app otherwise

scubajeff commented 1 week ago

Your media file might not have a timestamp recorded in its EXIF. But from the screenshot you posted, the timestamp can be extracted from its filename. I will add this in the next release.

GottHeit commented 1 week ago

Thanks :)

And sorry, I should have mentioned. Lespas for itsself recognizes EXIF Data, so pictures are shown in chronological order in Lespas, but the file date is changed to the moment when moving to an album. So in nextcloud the order isn´t correct anymore.

So file date was something like 11.06.24 22:10 before moving an 23.06.24 12:12 after moving even if files were already uploaded via backup from camera roll

Here is another example :)

Before moving: Screenshot_20240623-121826

After moving (it says file date "19 seconds" Screenshot 2024-06-23 121940

In Lespas: Screenshot_20240623-121913

scubajeff commented 1 week ago

Where is the second screenshot of your last post coming from? Do you mean the date/time miss match happens in Nextcloud file app rather than Les Pas?

GottHeit commented 1 week ago

No, the file date changes everywhere - right after i move a file in Lespas.

The file date - as you can see in screenshot one - was 08.06.24 before moving.

The second screenshot was right out of the nextcloud frontend. Here is full screen of nextcloud app, where you can seee the file date ist now 23.06.24 ("gestern" means "yesterday" in german language) Screenshot_20240624-091727

scubajeff commented 1 week ago

Ok, the date miss-match you see is from Nextcloud's Android client. Could you please also confirm the same happens in Android's own File app?

GottHeit commented 1 week ago

Did an upload via Nextcloud app.

First screen Phone Storage, second uploaded file. File date stays the same...

Screenshot_20240625-083532~2

Screenshot_20240625-083559

scubajeff commented 1 week ago

I just did a quick test on my Pixel phone:

  1. Open Les Pas's Gallery, find a file dated on June 21, then add it to Les Pas
  2. The file date stays the same in Les Pas's Gallery list
  3. Quit Les Pas, then open Android File app, the date of the file stays the same
  4. I don't have Nextcloud's client app installed, so I can't test it at this moment

Seems like I can't replicate this bug here. Or did I miss something?

GottHeit commented 1 week ago

Thanks again! Hmm, maybe I am doing something wrong.

  1. Did (Screen 1)
  2. Correct (Screen 2 - because of exif or other file information?)
  3. File is deleted afterwards because it was uploaded to Nextcloud (to use that and save space on phone, of course)
  4. In Nextcloud file is then dated to actual time and date (Screen 3)

How I use Les Pas (sorry for misspeling the name before)

  1. Open app - Phone gallery is shown
  2. Open phone gallery and then camera folder e.g. (or else, doesn´t depend)
  3. Choose a random photo frome date before today
  4. Hit Les Pas button and select moving to a imported archiv/backup folder from nextcloud
  5. Delete original photo in Les Pas pop up

Screen 1 (Picture from Wednesday): Screenshot_20240628-102352

Screen2 (after moving): Screenshot_20240628-102455~2

Screen 3 (in Nextcloud afterwards date is set to today): Screenshot_20240628-102807