Move time logic into getCanVote function.

Makes more sense that way.