It worked! It just take ages to rescan, but I’ve searched a bit and it seems to be due to various reasons (cache and other things).
I did a cp -Rp and nextcloud retained file dates, but this didn’t work for directories: while they have the correct timestamp on the filesystem (checked with ls -la), nextcloud imported them with “today” as the creation date.
Thank you!