fix(region): zstack time zone auth

This commit is contained in:
ioito
2021-12-10 15:06:37 +08:00
parent 3499630fb5
commit 98764a0998
+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 {