IRA withdraw

I accidentally withdrew an amount from an IRA. I have read that I have 60 days to put it back, but what if it straddles the year end?