“As the time draws near” in Chinese is 临时 (línshí).
临时抱佛脚。
I'm making a last minute effort.
Example sentence from Tatoeba (CC BY 2.0).