From c63d5575367236cd94a091bde76ff16118377339 Mon Sep 17 00:00:00 2001 From: fengweihao Date: Tue, 23 Jul 2019 19:33:06 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=AF=81=E4=B9=A6=E8=B5=B7?= =?UTF-8?q?=E5=A7=8B=E6=97=B6=E9=97=B4=EF=BC=8C=E6=97=B6=E5=8C=BA=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- platform/src/ssl_utils.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/platform/src/ssl_utils.cpp b/platform/src/ssl_utils.cpp index 1831923..80f379f 100644 --- a/platform/src/ssl_utils.cpp +++ b/platform/src/ssl_utils.cpp @@ -616,8 +616,6 @@ int ssl_x509_serial_copyrand(X509 * dstcrt, X509 * srccrt) return 0; } - - static time_t ASN1_GetTimeT(ASN1_TIME* time){ struct tm t; const char* str = (const char*) time->data; @@ -649,6 +647,7 @@ static time_t ASN1_GetTimeT(ASN1_TIME* time){ t.tm_sec += (str[i++] - '0'); /* Note: we did not adjust the time based on time zone information */ + setenv("TZ", "UTC", 1); return mktime(&t); }