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,