Every now and then I notice that the date modified of some files on my FTP server has slightly changed by setting the time to midnight. I notice this because I regularly sync the files from the FTP server to a folder on my Mac by comparing the date modified, and it happens every now and then that files that weren’t modified are listed for syncing. For many months after their creation, the time is correct and they are only synced once, but at some point the time is displayed as midnight for some reason and they are suddenly marked for syncing.
The wrong time is reported both programmatically as well as in the Finder.
The same files are displayed with what seems to be the correct time modified in the app Cyberduck.
In this case it seems to be exactly 6 months old files. I didn't check this for the other files that this issue happened with in the past, but it could be about the same timeframe.
Is this an issue with macOS? Is there a workaround? I already filed feedback FB13671336.