Add restore-status header for multipart objects (#16508)

This commit is contained in:
Krishnan Parthasarathi
2023-01-30 18:23:45 -08:00
committed by GitHub
parent f713436dd0
commit cea2ca8c8e
3 changed files with 12 additions and 10 deletions

View File

@@ -3051,7 +3051,7 @@ func (api objectAPIHandlers) PostRestoreObjectHandler(w http.ResponseWriter, r *
}
}
// set or upgrade restore expiry
restoreExpiry := lifecycle.ExpectedExpiryTime(time.Now(), rreq.Days)
restoreExpiry := lifecycle.ExpectedExpiryTime(time.Now().UTC(), rreq.Days)
metadata := cloneMSS(objInfo.UserDefined)
// update self with restore metadata