The New York Yankees have avoided a July scheduling issue that would have seen them play three games in 24 hours.

Major League Baseball says that the Yankees' scheduled game against the Toronto Blue Jays on Sunday, July 8, will be moved from an 8 p.m. ET start on ESPN to 1:07 p.m. in Toronto.

New York is scheduled to play a doubleheader on Monday, July 9, in Baltimore. So the new time for the Blue Jays game will give the Yankees more time to get to Baltimore before they have to play two.

The Los Angeles Dodgers-Los Angeles Angels game in Anaheim will replace Yankees-Blue Jays as the Sunday night game on ESPN.

The Yankees reportedly were unaware they had been chosen as the Sunday night game before agreeing to the July 9 doubleheader against Baltimore, which was forced when the teams' scheduled game this past Sunday was postponed due to rain.