From 9642cee3b8f152871cba4d023bb15f78bdec56bf Mon Sep 17 00:00:00 2001 From: piguagua Date: Mon, 10 Jun 2024 17:42:01 +0800 Subject: [PATCH] chore: using built-in constants Signed-off-by: piguagua --- huobi/common/sign.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()