When uploading files to a rclone webdav, the modtime is set to the time of uploading

e. Or use a service such as https://pastebin.com or https://gist.github.com/ -->

What is the problem you are having with rclone?

when uploading files to a rclone webdav, the modtime is set to the time of uploading rather than the correct value

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

  • os/version: Microsoft Windows 10 Education 22H2 22H2 (64 bit)
  • os/kernel: 10.0.19045.5371 (x86_64)
  • os/type: windows
  • os/arch: amd64
  • go/version: go1.24.3
  • go/linking: static
  • go/tags: cmount

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

local folder with rclone serve webdav

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

rclone copy /tmp remote:tmp

Please run 'rclone config redacted' and share the full output. If you get command not found, please make sure to update rclone.

[rdrive]
type = webdav
url = http://ip address:port/
vendor = rclone
user = XXX
pass = XXX
### Double check the config for sensitive info before posting publicly

A log from the command that you were trying to run with the -vv flag

2025/06/07 12:23:03 DEBUG : rclone: Version "v1.69.3" starting with parameters ["C:\\ProgramData\\chocolatey\\lib\\rclone.portable\\tools\\rclone-v1.69.3-windows-amd64\\rclone.exe" "sync" "C:/stuff/random/a.txt" "rdrive:/a" "-vv"]
2025/06/07 12:23:03 DEBUG : Creating backend with remote "C:/stuff/random/a.txt"
2025/06/07 12:23:03 DEBUG : Using config file from "C:\\Users\\u\\AppData\\Roaming\\rclone\\rclone.conf"
2025/06/07 12:23:03 DEBUG : fs cache: renaming child cache item "C:/stuff/random/a.txt" to be canonical for parent "//?/C:/stuff/random"
2025/06/07 12:23:03 DEBUG : Creating backend with remote "rdrive:/a"
2025/06/07 12:23:03 DEBUG : found headers:
2025/06/07 12:23:03 DEBUG : fs cache: renaming cache item "rdrive:/a" to be canonical "rdrive:a"
2025/06/07 12:23:03 DEBUG : a.txt: Need to transfer - File not found at Destination
2025/06/07 12:23:03 DEBUG : a.txt: Update will use the normal upload strategy (no chunks)
2025/06/07 12:23:03 INFO  : a.txt: Copied (new)
2025/06/07 12:23:03 INFO  :
Transferred:              1 B / 1 B, 100%, 0 B/s, ETA -
Transferred:            1 / 1, 100%
Elapsed time:         0.0s

welcome to the fourm,

correct, with most webdav servers, there is no concept of modtime.
so, rclone's modtime is the server's creation/upload time.

Plain WebDAV does not support modified times