replication: Ensure to always use nano precision source modtime (#11135)

This commit is contained in:
Anis Elleuch
2020-12-18 20:37:28 +01:00
committed by GitHub
parent a773cf48d8
commit 5434088c51
4 changed files with 6 additions and 6 deletions

View File

@@ -187,7 +187,7 @@ func delOpts(ctx context.Context, r *http.Request, bucket, object string) (opts
mtime := strings.TrimSpace(r.Header.Get(xhttp.MinIOSourceMTime))
if mtime != "" {
opts.MTime, err = time.Parse(time.RFC3339, mtime)
opts.MTime, err = time.Parse(time.RFC3339Nano, mtime)
if err != nil {
return opts, InvalidArgument{
Bucket: bucket,