Complex sentence: Poll opening and closing times on election day can be set individually by each municipality, but the poll closing time must be no later than 5pm.
Split into simpler sentences: Poll opening and closing times on election day were set individually by each municipality. Poll closing times can be no later than 5pm.