mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-19 02:37:24 +08:00
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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user