Joshua didn't say choose you next year whom you will serve; he spoke of "this day," while there is still daylight and before the darkness becomes more and more normal.
You must not mistake passing local cloud cover, for general darkness.