fix(region): zstack time zone auth

This commit is contained in:
ioito
2021-12-10 15:08:29 +08:00
parent d214efdb65
commit 68c9edbd09
+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 {