From: yuliyang_yewu Date: Sat, 14 Nov 2020 04:36:51 +0000 (+0800) Subject: rgw: fix RequestTimeTooSkewed when Date X-Git-Tag: v16.1.0~313^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=330508866c365359238dd571245d37e5a367cd31;p=ceph.git rgw: fix RequestTimeTooSkewed when Date contain RFC-822/ISO 8601 standard timezone fix https://tracker.ceph.com/issues/48236 Signed-off-by: yuliyang_yewu --- diff --git a/src/rgw/rgw_auth_s3.cc b/src/rgw/rgw_auth_s3.cc index 3727c0c7ba35..eca27202373b 100644 --- a/src/rgw/rgw_auth_s3.cc +++ b/src/rgw/rgw_auth_s3.cc @@ -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; } }