]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: fix RequestTimeTooSkewed when Date 38075/head
authoryuliyang_yewu <yuliyang_yewu@cmss.chinamobile.com>
Sat, 14 Nov 2020 04:36:51 +0000 (12:36 +0800)
committeryuliyang_yewu <yuliyang_yewu@cmss.chinamobile.com>
Sat, 14 Nov 2020 04:37:18 +0000 (12:37 +0800)
contain RFC-822/ISO 8601 standard timezone

fix https://tracker.ceph.com/issues/48236

Signed-off-by: yuliyang_yewu <yuliyang_yewu@cmss.chinamobile.com>
src/rgw/rgw_auth_s3.cc

index 3727c0c7ba3532abb9df50c115003eecbaa454c9..eca27202373b2f78feef30e4dd2398acdfbe3430 100644 (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;
     }
   }