We had this issue at one point with DH - he made a SEP-IRA contribution at Fidelity, for the previous tax year, in April.
In the memo section, he clearly wrote TAX YEAR PREVIOUS.
We got a letter from the IRS, saying he'd underreported income, and in that same amount. We contacted Fidelity and asked them - turned out that they'd credited to the current year.
Since they take pics of all deposits, they pulled it up in their system, saw that we had noted PREVIOUS YEAR on the check, and they corrected it.
We printed out the messages in the message center, and returned it to the IRS with a copy of their letter, and we got a "resolved, thank you" letter some months later.