fix enddate resetting to 00:00:00 when editing an election
when you create an election, we set the enddate time to
23:59:59, but if you then edited that election, the
time would reset to 00:00:00. this sets the time to
23:59:59 when editing anelection that already exists.