at the last minute
At the latest possible moment or opportunity. For example, Jim couldn't get a reservation because he had called at the last minute. Also see at the latest; eleventh hour.
The American Heritage® Idioms Dictionary Copyright © 2002, 2001, 1995 by Houghton Mifflin Harcourt Publishing Company. Published by Houghton Mifflin Harcourt Publishing Company.