Skip to content

Commit

Permalink
Fix polygon day aggrgate timezone
Browse files Browse the repository at this point in the history
  • Loading branch information
Hitoshi Harada committed Jul 6, 2018
1 parent b110dc8 commit 7a33e21
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions alpaca_trade_api/polygon/entity.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,7 @@ def df(self):
else:
df.set_index('day', inplace=True)
df.index = pd.to_datetime(
df.index, utc=True,
).tz_convert(NY)
df.index).tz_localize(NY)
self._df = df

return self._df
Expand Down

0 comments on commit 7a33e21

Please sign in to comment.