Changing the edit date of a file with touch -m doesn't work

Nextcloud version (eg, 20.0.5): 25.0.4
Operating system and version (eg, Ubuntu 20.04): Ubuntu Server 22.04, Docker 20.10.12
Apache or nginx version (eg, Apache 2.4.25): Caddy 2.6.4
PHP version (eg, 7.4): 8.1.16

The issue you are facing:
I have some files that I would like to override the edit date of. I tried using touch -m on them, but NextCloud still displays the original date. The server’s tfile system does display the proper date, though.

Is this the first time you’ve seen this error? (Y/N): Yes

Steps to replicate it:

  1. Shut down NextCloud
  2. Change the edit date of a file with touch -m
  3. Start NextCloud
  4. View file’s edit date

I don’t have any logs relevant to this issue

Did you scan for manual changes after?

2 Likes

That was the missing piece, thanks! For anyone reading the thread in the future:

php occ files:scan