"rsync for cloud storage" - Google Drive, S3, Dropbox, Backblaze B2, One Drive, Swift, Hubic, Wasabi, Google Cloud Storage, Azure Blob, Azure Files, Yandex Files
Go azure-blobazure-blob-storageazure-filesbackblaze-b2cloud-storagedropboxencryptionftpfuse-filesystemgogolanggoogle-cloud-storagegoogle-driveonedriveopenstack-swiftrclones3sftpsyncwebdav
serve ftp: ensure modtime is passed as UTC always to fix timezone oddities
Nick Craig-Woodfc5d6c16b626
diff --git a/cmd/serve/ftp/ftp.go b/cmd/serve/ftp/ftp.goindex c3bcab6a9..843ee9ef4 100644--- a/cmd/serve/ftp/ftp.go+++ b/cmd/serve/ftp/ftp.go@@ -14,6 +14,7 @@ import ("os/user""strconv""sync"+ "time""github.com/pkg/errors""github.com/rclone/rclone/cmd"@@ -503,6 +504,11 @@ func (f *FileInfo) Group() string {return g.Name}+// ModTime returns the time in UTC+func (f *FileInfo) ModTime() time.Time {+ return f.FileInfo.ModTime().UTC()+}+func closeIO(path string, c io.Closer) {err := c.Close()if err != nil {