diff --git a/huobi/common/sign.go b/huobi/common/sign.go index aa47d431..caff6577 100644 --- a/huobi/common/sign.go +++ b/huobi/common/sign.go @@ -14,7 +14,7 @@ func DoSignParam(httpMethod, reqUrl string, apiOpt options.ApiOptions) *url.Valu signParams.Set("AccessKeyId", apiOpt.Key) signParams.Set("SignatureMethod", "HmacSHA256") signParams.Set("SignatureVersion", "2") - signParams.Set("Timestamp", time.Now().UTC().Format("2006-01-02T15:04:05")) + signParams.Set("Timestamp", time.Now().UTC().Format(time.DateTime)) reqURL, _ := url.Parse(reqUrl) path := reqURL.RequestURI()