Skip to content

Commit 3eb4ae8

Browse files
committed
YQ-4289 fixed aws auth in timezones (#18930)
1 parent 044bf46 commit 3eb4ae8

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

ydb/core/external_sources/s3/ut/ya.make

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ NO_CHECK_IMPORTS()
44

55
DATA(arcadia/ydb/core/external_sources/s3/ut/docker-compose.yml)
66
ENV(COMPOSE_PROJECT_NAME=s3)
7+
ENV(TZ="UTC+13")
78

89
IF (AUTOCHECK)
910
# Temporarily disable these tests due to infrastructure incompatibility

ydb/library/yql/providers/common/http_gateway/ya.make

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
LIBRARY()
22

3+
ENV(TZ="UTC+23")
4+
35
SRCS(
46
yql_aws_signature.cpp
57
yql_http_default_retry_policy.cpp

ydb/library/yql/providers/common/http_gateway/yql_aws_signature.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ TString TAwsSignature::GetXAmzContentSha256() const {
6767
}
6868

6969
TString TAwsSignature::GetAmzDate() const {
70-
return CurrentTime.FormatLocalTime("%Y%m%dT%H%M%SZ");
70+
return CurrentTime.FormatGmTime("%Y%m%dT%H%M%SZ");
7171
}
7272

7373
TString TAwsSignature::GetContentType() const {
@@ -112,7 +112,7 @@ TString TAwsSignature::CalcSignature() const {
112112
}
113113

114114
TString TAwsSignature::GetDate() const {
115-
return CurrentTime.FormatLocalTime("%Y%m%d");
115+
return CurrentTime.FormatGmTime("%Y%m%d");
116116
}
117117

118118
TString TAwsSignature::HmacSHA256(TStringBuf key, TStringBuf data) {

0 commit comments

Comments
 (0)