Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion yfinance/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ def history(self, period="1mo", interval="1d",
get_fn = self._data.get
if end is not None:
end_dt = _pd.Timestamp(end, unit='s').tz_localize("UTC")
dt_now = end_dt.tzinfo.localize(_datetime.datetime.utcnow())
dt_now = _pd.Timestamp.utcnow()
data_delay = _datetime.timedelta(minutes=30)
if end_dt+data_delay <= dt_now:
# Date range in past so safe to fetch through cache:
Expand Down