Timestamp of uploaded files NC 11


I migrated from Owncloud 9 to Nextcloud 11 and I faced a problem with the timestamp of the uploaded files.
In Owncloud the timestamp of a files is equal of the time the file was uploded. After migration to Nextcloud 11 the timestamp is the original timestamp of the last modification (somewhere in the past).

I have a script to delete all files older than 30 days after upload. Now most the newly uploaded files are gone, because of the new timestamp.

I reproduced the Problem by instaling Nextcloud 10 and there are everythiong fine with the timestamps. After the upgrade to Nextcloud 11 the timestamp method changed.

Is it a bug, or can I find something about the timestamp in the changelog of Nextcloud 11?
Is there a way to change the behavior of the timestamps?

Nextcloud version (11.0.2):
Operating system and version (CentOS 7.3):
Apache or nginx version (Apache 2.4.6):
PHP version (7.1):

Is this the first time you’ve seen this error?:

I faced the problem because customer complained about lost files.

Can you reliably replicate it? (If so, please outline steps):

see above upgrading NC 10 to 11

Thank you for your help.


Hi everybody,
someone already has a solution to the problem.
I would also like to use the function to delete files older than 14 days.