diff --git a/src/rgw/rgw_auth_s3.cc b/src/rgw/rgw_auth_s3.cc index 3727c0c7ba3..eca27202373 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; } }