wrong earnings_date comparing with yahoo.com (version 0.2.54)
Describe bug
stock earnings_dates from yfinance is 1 day earlier than what yahoo website shows. I tried several tickers and they all have the same problem. Use "GOOGL" as example, one of the earnings dates yfinance returned is 2025-02-03 19:00:00-05:00. On yahoo website https://finance.yahoo.com/calendar/earnings?symbol=GOOGL, it is "February 4, 2025 at 4 PM EST". My yfinance version is latest (0.2.54).
Simple code that reproduces your problem
import yfinance stock = yfinance.Ticker("GOOGL") stock.earnings_dates
Debug log from yf.enable_debug_mode()
DEBUG Entering get_earnings_dates() DEBUG Entering post() DEBUG Entering _make_request() DEBUG url=https://query1.finance.yahoo.com/v1/finance/visualization DEBUG params={'lang': 'en-US', 'region': 'US'} DEBUG Entering _get_cookie_and_crumb() DEBUG cookie_mode = 'basic' DEBUG Entering _get_cookie_and_crumb_basic() DEBUG reusing cookie DEBUG reusing crumb DEBUG Exiting _get_cookie_and_crumb_basic() DEBUG Exiting _get_cookie_and_crumb() DEBUG response code=200 DEBUG Exiting _make_request() DEBUG Exiting post() DEBUG Exiting get_earnings_dates()
Bad data proof
https://finance.yahoo.com/calendar/earnings?symbol=GOOGL
yfinance version
0.2.54.
Python version
3.12.1
Operating system
windows
duplicate #2365