uptobox: ensure files and folders show the modtime configured by --default-time #6986
This commit is contained in:
parent
6001f05a12
commit
0468375054
2 changed files with 4 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue