diff --git a/backend/uptobox/uptobox.go b/backend/uptobox/uptobox.go index ad827377b..4f09ad8e6 100644 --- a/backend/uptobox/uptobox.go +++ b/backend/uptobox/uptobox.go @@ -923,7 +923,8 @@ func (o *Object) Remote() string { // It attempts to read the objects mtime and if that isn't present the // LastModified returned in the http headers func (o *Object) ModTime(ctx context.Context) time.Time { - return time.Now() + ci := fs.GetConfig(ctx) + return time.Time(ci.DefaultTime) } // Size returns the size of an object in bytes diff --git a/docs/content/uptobox.md b/docs/content/uptobox.md index 7324058fc..7f6e750ab 100644 --- a/docs/content/uptobox.md +++ b/docs/content/uptobox.md @@ -84,7 +84,8 @@ To copy a local directory to an Uptobox directory called backup ### Modified time and hashes -Uptobox supports neither modified times nor checksums. +Uptobox supports neither modified times nor checksums. All timestamps +will read as that set by `--default-time`. ### Restricted filename characters