I think the joke is a pun. A 'dark day' could mean deeply troubling times, or it could mean the lighting literally being dark because of overcast clouds or the sun being blocked by an eclipse.
A politician decided to resign on the day of an eclipse because it was a dark day .