Merge pull request #12860 from ioito/automated-cherry-pick-of-#12858-upstream-release-3.7

Automated cherry pick of #12858: fix(region): zstack time zone auth
This commit is contained in:
Zexi Li
2021-12-10 16:57:41 +08:00
committed by GitHub
+2 -1
View File
@@ -86,7 +86,8 @@ type SZStackClient struct {
}
func getTime() string {
return time.Now().Format("Mon, 02 Jan 2006 15:04:05 MST")
zone, _ := time.LoadLocation("Asia/Shanghai")
return time.Now().In(zone).Format("Mon, 02 Jan 2006 15:04:05 MST")
}
func sign(accessId, accessKey, method, date, url string) string {