The `--refresh-times` option doesn't seem to work for an encrypted onedrive remote

What is the problem you are having with rclone?

The --refresh-times option doesn't seem to work for my encrypted onedrive remote.

This is a follow on from my bug report and subsequent issue.

If I sync a single file and then an lsl of the remote file, I can see that it still only has one-second resolution, not millisecond resolution. A subsequent run of sync still reports that it has to adjust the modification time. That is, it appears --refresh-times is not working.

Run the command 'rclone version' and share the full output of the command.

rclone v1.68.0
- os/version: ubuntu 22.04 (64 bit)
- os/kernel: 5.15.0-101-generic (x86_64)
- os/type: linux
- os/arch: amd64
- go/version: go1.23.1
- go/linking: static
- go/tags: none

Which cloud storage system are you using? (eg Google Drive)

Encrypted OneDrive

The command you were trying to run (eg rclone copy /tmp remote:tmp)

rclone -vv sync --refresh-times ~/repos/photos/data/1/1202 onedrive:repos/photos/data/1

Then

rclone lsl ~/repos/photos/data/1/1202
rclone lsl onedrive:repos/photos/data/1/1202

The rclone config contents with secrets removed.

[onedrive]
type = crypt
remote = onedriveunderlying:rclonebackups
filename_encryption = standard
directory_name_encryption = true
password = XXX
password2 = XXX

[onedriveunderlying]
type = onedrive
token = XXX
drive_id = XXX
drive_type = personal

A log from the command with the -vv flag

borg@host:~$ rclone -vv sync --refresh-times ~/repos/photos/data/1/1202 onedrive:repos/photos/data/1
2024/09/22 23:57:32 DEBUG : rclone: Version "v1.68.0" starting with parameters ["rclone" "-vv" "sync" "--refresh-times" "/home/borg/repos/photos/data/1/1202" "onedrive:repos/pho
tos/data/1"]
2024/09/22 23:57:32 DEBUG : Creating backend with remote "/home/borg/repos/photos/data/1/1202"
2024/09/22 23:57:32 DEBUG : Using config file from "/home/borg/.config/rclone/rclone.conf"
2024/09/22 23:57:32 DEBUG : fs cache: adding new entry for parent of "/home/borg/repos/photos/data/1/1202", "/home/borg/repos/photos/data/1"
2024/09/22 23:57:32 DEBUG : Creating backend with remote "onedrive:repos/photos/data/1"
2024/09/22 23:57:32 DEBUG : Creating backend with remote "onedriveunderlying:rclonebackups/qtvah5opb18p4g4ve2i0lh4mio/vptothej6ciusdjpca3agsgj5o/u58r1pkbe9ip1vlcarj5tntqqs/s4s1q07jvge4ij8b60qlddrsf8"
2024/09/22 23:57:34 DEBUG : 1202: Modification times differ by -143.88454ms: 2023-02-17 21:00:17.14388454 +1100 AEDT, 2023-02-17 10:00:17 +0000 UTC
2024/09/22 23:57:35 INFO  : 1202: Updated modification time in destination
2024/09/22 23:57:35 DEBUG : 1202: Unchanged skipping
2024/09/22 23:57:35 INFO  :
Transferred:              0 B / 0 B, -, 0 B/s, ETA -
Elapsed time:         2.9s

2024/09/22 23:57:35 DEBUG : 6 go routines active

borg@host:~$ rclone lsl ~/repos/photos/data/1/1202
   147857 2023-02-17 21:00:17.143884540 1202
borg@host:~$ rclone lsl onedrive:repos/photos/data/1/1202
   147857 2023-02-17 21:00:17.000000000 1202