Finally, I have been able to reproduce the error, and chase it down to a string formatting issue!javiexin wrote:Yes, this is a known error that I have been unable to chase down. I will have to find out what is going on, and where are my calculations failing. This is due to the fact that phpbb stores the poll duration in seconds, but presents it to the user in full days, so rounded, and therefore you have to recalculate and fake the poll start date to be able to have the exact date/time when you want it finished. Somehow, I have a case (that I have not been able to reproduce) that this calculation is wrong...
I would like that people that have noticed this problem go ahead and perform the following change, and test it:
Open ext\wolfsblvt\advancedpolls\core\advancedpolls.php
Find
'%d-%d-%d-%d-%d'
Replace in-line with
'%d-%d-%d-%02d-%02d'
If you find any issues, please report them here, stating the data input into the poll configuration (for/until and date for duration.
I will include this in the next version, but in the meantime, you may test it and provide feedback.
Apologies,
-javiexin