diff --git a/local/local.go b/local/local.go index 25eb9c627..4e80b612e 100644 --- a/local/local.go +++ b/local/local.go @@ -772,7 +772,7 @@ func (o *Object) setMetadata(info os.FileInfo) { if o.size != info.Size() { o.size = info.Size() } - if o.modTime != info.ModTime() { + if !o.modTime.Equal(info.ModTime()) { o.modTime = info.ModTime() } if o.mode != info.Mode() {