Skip to content

Commit

Permalink
Have the code run everywhere
Browse files Browse the repository at this point in the history
  • Loading branch information
R5dan committed Dec 30, 2024
1 parent aaa8efd commit 31b06dc
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions yfinance/scrapers/history.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,11 @@ def history(self, period="1mo", interval="1d",
period_user = period
period = None
interval = '1d'
else:
end = utils._parse_user_dt(end, self.tz)
start = _datetime.date.fromordinal(end)
start -= utils._interval_to_timedelta(period)
start -= _datetime.timedelta(days=4)

start_user = start
end_user = end
Expand Down

0 comments on commit 31b06dc

Please sign in to comment.