From b6fff482a493353805e0d09be2ee84018f121eee Mon Sep 17 00:00:00 2001 From: c9s Date: Fri, 3 Sep 2021 14:21:59 +0800 Subject: [PATCH] binance: fix withdrawal time parsing --- pkg/exchange/binance/exchange.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkg/exchange/binance/exchange.go b/pkg/exchange/binance/exchange.go index e15403592..3285a74f2 100644 --- a/pkg/exchange/binance/exchange.go +++ b/pkg/exchange/binance/exchange.go @@ -297,7 +297,8 @@ func (e *Exchange) QueryWithdrawHistory(ctx context.Context, asset string, since txIDs[d.TxID] = struct{}{} - applyTime, err := time.Parse(time.RFC3339, d.ApplyTime) + // 2006-01-02 15:04:05 + applyTime, err := time.Parse("2006-01-02 15:04:05", d.ApplyTime) if err != nil { return nil, err }