"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
dropbox: Switch to using RFC3339 for time metadata
Nick Craig-Wooddfc8a375f6b9
diff --git a/dropbox/dropbox.go b/dropbox/dropbox.goindex 226269063..24cbe98b3 100644--- a/dropbox/dropbox.go+++ b/dropbox/dropbox.go@@ -31,7 +31,6 @@ import ("time""github.com/ncw/rclone/fs"- "github.com/ncw/swift""github.com/stacktic/dropbox")@@ -46,6 +45,8 @@ const (md5sumField = "md5sum"mtimeField = "mtime"maxCommitRetries = 5+ RFC3339In = time.RFC3339+ RFC3339Out = "2006-01-02T15:04:05.000000000Z07:00")// Register with Fs@@ -622,7 +623,7 @@ func (o *FsObjectDropbox) readMetaData() (err error) {if !ok {fs.Debug(o, "mtime not a string")} else {- modTime, err := swift.FloatStringToTime(mtime)+ modTime, err := time.Parse(RFC3339In, mtime)if err != nil {return err}@@ -668,7 +669,7 @@ func (o *FsObjectDropbox) setModTimeAndMd5sum(modTime time.Time, md5sum string)}if !modTime.IsZero() {- mtime := swift.TimeToFloatString(modTime)+ mtime := modTime.Format(RFC3339Out)err := record.Set(mtimeField, mtime)if err != nil {return fmt.Errorf("Couldn't set mtime record: %s", err)