Skip to content

Commit f72b7e3

Browse files
author
Artjoms Iskovs
committed
MDP-395 _to_dt now actually uses the default_tz
1 parent 0a2b6ca commit f72b7e3

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

arctic/tickstore/tickstore.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -504,8 +504,7 @@ def _to_dt(self, date, default_tz=None):
504504
elif date.tzinfo is None:
505505
if default_tz is None:
506506
raise ValueError("Must specify a TimeZone on incoming data")
507-
# Treat naive datetimes as London
508-
return date.replace(tzinfo=mktz())
507+
return date.replace(tzinfo=default_tz)
509508
return date
510509

511510
def _str_dtype(self, dtype):

0 commit comments

Comments
 (0)