I think there's a bit more subtlety to the law. i.e. You are entitled to a voting period of 3 consecutive hours and if this is not possible without leaving work then your employeer is obligated to let you take the time off. In my case I get off at 5pm, polls close at 9:30pm so there's my 3 hours. i.e. I don't get to leave work early.