Skip to content

Commit 7637a77

Browse files
Moonpuckzhenjiaseu
authored andcommitted
fix(oss): update gmt date correctly in OSS requests (#1143)
1 parent 50d729e commit 7637a77

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ecosystem/oss.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1660,7 +1660,7 @@ class BasicAuthenticator : public Authenticator {
16601660
std::time_t now = std::time(nullptr);
16611661
struct tm tm{};
16621662
if (gmtime_r(&now, &tm)) {
1663-
m_last_tim = now;
1663+
m_last_tim = t;
16641664
strftime(m_gmt_date, GMT_DATE_LIMIT, "%a, %d %b %Y %H:%M:%S GMT", &tm);
16651665
strftime(m_gmt_date_iso8601, GMT_DATE_LIMIT, "%Y%m%dT%H%M%SZ", &tm);
16661666
}

0 commit comments

Comments
 (0)