last-minute

/L AE1 S T M IH0 N AH0 T/
adjective
  1. 1

    Just before it is too late; in the nick of time.

    โ€œHe's a last-minute replacement. After today, they'd have had to play with the original roster.โ€

Source: https://en.wiktionary.org/wiki/last-minute