uptobox: ensure files and folders show the modtime configured by --default-time #6986

This commit is contained in:
Nick Craig-Wood 2023-05-03 10:46:54 +01:00
parent 6001f05a12
commit 0468375054
2 changed files with 4 additions and 2 deletions

View File

@ -923,7 +923,8 @@ func (o *Object) Remote() string {
// It attempts to read the objects mtime and if that isn't present the // It attempts to read the objects mtime and if that isn't present the
// LastModified returned in the http headers // LastModified returned in the http headers
func (o *Object) ModTime(ctx context.Context) time.Time { 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 // Size returns the size of an object in bytes

View File

@ -84,7 +84,8 @@ To copy a local directory to an Uptobox directory called backup
### Modified time and hashes ### 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 ### Restricted filename characters