A Member started a few polls in our forum today in the mornig. The polls should end 14 days later, which had been the first of august. It was necessary to edit the polls today to add some more options, etc.
It is now not possible to let the polls end to this time again, 14 days...they will end a few years later... ;)
It is not working, if I type 14 in this field, it always says 32710 days
hmm...
In Poll.subs.php, search for:
function modifyPoll($id_poll, $question, $max_votes = 1, $hide_results = 1, $expire = 0, $can_change_vote = 0, $can_guest_vote = 0)
{
$expire = empty($expire) ? 0 : time() + $expire * 3600 * 24;
and remove that last line.
Pay attention the line is present also in createPoll, but that one shall remain!
Thank you very much, Emanuele. It was working. Now I can edit them again and they will show the correct ending date.
:)
I'll put it in 1.0.8!