Sorting photos by date? Modifiyng dates afterwards

This summer I moved my Nextcloud to run under docker. In the process, I copied all my NC data over to a new dataset. It took a whili before I realised all my files had updated created / changed dates. Not really a problem, apart from viewing Photos in the web gui and app. Now all tha pics I´ve taken before July 25th of this year get sorted under July. Not great,

Since all the photos taken with my iPhone are automatically synced to my NC servevr, their filenames contain the timestamp when they were taken. So I created a script that runs through all the sub folders where these files reside, and update the modified time using touch -t.

But they all still list under July of this year in Nextcloud. Even though I have done a file scan using occ.
stat on one of these files gives this:

  File: 2020-08-04_19-38-35_IMG_2384.JPG
  Size: 5983606         Blocks: 11702      IO Block: 131072 regular file
Device: 0,63    Inode: 26521       Links: 1
Access: (0644/-rw-r--r--)  Uid: (   33/www-data)   Gid: (   33/www-data)
Access: 2020-08-04 19:38:35.000000000 +0200
Modify: 2020-08-04 19:38:35.000000000 +0200
Change: 2024-10-18 13:56:20.211863838 +0200
 Birth: 2024-07-25 11:12:01.203146229 +0200

The Change date seems to be what I updated with my script. What does Nextcloud look at? Birth?
Any idea where I went wrong, and if I can fix it somehow?

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.