提交 1734172b 编写于 作者: R rualdeng 提交者: Jinliang Li

update to GMT time (#1437)

上级 f22d9d74
......@@ -169,7 +169,7 @@ void OssClientImpl::addHeaders(const std::shared_ptr<HttpRequest> &httpRequest,
time_t now;
struct tm *timeinfo = NULL;
char GMT_DATA_TIME[30];
now = time(NULL);
now = time(NULL) - 3600 * 8;
timeinfo = localtime(&now);
memset(GMT_DATA_TIME, 0, sizeof(GMT_DATA_TIME));
strftime(GMT_DATA_TIME, sizeof(GMT_DATA_TIME), "%a, %d %b %Y %H:%M:%S GMT", timeinfo);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册