Fix the status property of an election
In the election creation form we indicate that the end_date is included
in the voting period (vote ends on end_date at 23:59:59).
This commit fixes this by checking dates instead of date/time and making
sure the end_date is included in the voting period.