Skip to content

Commit

Permalink
MDP-395 _to_dt now actually uses the default_tz
Browse files Browse the repository at this point in the history
  • Loading branch information
Artjoms Iskovs committed Jul 14, 2015
1 parent 0a2b6ca commit f72b7e3
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions arctic/tickstore/tickstore.py
Original file line number Diff line number Diff line change
Expand Up @@ -504,8 +504,7 @@ def _to_dt(self, date, default_tz=None):
elif date.tzinfo is None:
if default_tz is None:
raise ValueError("Must specify a TimeZone on incoming data")
# Treat naive datetimes as London
return date.replace(tzinfo=mktz())
return date.replace(tzinfo=default_tz)
return date

def _str_dtype(self, dtype):
Expand Down

0 comments on commit f72b7e3

Please sign in to comment.