Merge pull request #38075 from joke-lee/s3-auth-date-fix

rgw: fix RequestTimeTooSkewed when Date contain RFC-822/ISO 8601 standard timezone
This commit is contained in:
Harish Munjulur 2020-12-10 11:49:37 -08:00 committed by GitHub
commit ddb5a03b47
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -221,6 +221,7 @@ bool rgw_create_s3_canonical_header(const req_info& info,
return false;
}
*header_time = utime_t(internal_timegm(&t), 0);
*header_time -= t.tm_gmtoff;
}
}