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
// 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