Skip to main content
Topic: Poll shows different time after edit (Read 1546 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Poll shows different time after edit

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

Re: Poll shows different time after edit

Reply #1

hmm...
In Poll.subs.php, search for:
Code: [Select]
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!
Bugs creator.
Features destroyer.
Template killer.

Re: Poll shows different time after edit

Reply #2

Thank you very much, Emanuele. It was working. Now I can edit them again and they will show the correct ending date.

Re: Poll shows different time after edit

Reply #3

:)

I'll put it in 1.0.8!
Bugs creator.
Features destroyer.
Template killer.