From 38d090bed4965d2afa0c7d2035d5df1b27fb5a9d Mon Sep 17 00:00:00 2001 From: "vn.py" Date: Tue, 17 Sep 2019 23:30:30 +0800 Subject: [PATCH] [Mod] close #2019 --- vnpy/gateway/okexf/okexf_gateway.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vnpy/gateway/okexf/okexf_gateway.py b/vnpy/gateway/okexf/okexf_gateway.py index e1b9d3cd..abcb660b 100644 --- a/vnpy/gateway/okexf/okexf_gateway.py +++ b/vnpy/gateway/okexf/okexf_gateway.py @@ -561,7 +561,7 @@ class OkexfRestApi(RestClient): for l in data: ts, o, h, l, c, v, _ = l - dt = datetime.strptime(ts, "%Y-%m-%dT%H:%M:%S.%fZ") + dt = utc_to_local(ts) bar = BarData( symbol=req.symbol, exchange=req.exchange,