单项选择题

Although his wallet was at the restaurant during the entire drive home, it was not until he arrived at the house ______ he remembered leaving it there.

(A) did
(B) that
(C) when
(D) where