From 4a9179ffea5b285888351d1a46ca797975e60c3e Mon Sep 17 00:00:00 2001 From: Antonin Date: Fri, 29 May 2015 17:46:29 +0200 Subject: [PATCH] Fix the poll's deletion date --- studs.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/studs.php b/studs.php index 0bcf460..6597c02 100644 --- a/studs.php +++ b/studs.php @@ -207,7 +207,7 @@ $smarty->assign('poll_id', $poll_id); $smarty->assign('poll', $poll); $smarty->assign('title', __('Generic', 'Poll') . ' - ' . $poll->title); $smarty->assign('expired', strtotime($poll->end_date) < time()); -$smarty->assign('deletion_date', $poll->end_date + PURGE_DELAY * 86400); +$smarty->assign('deletion_date', strtotime($poll->end_date) + PURGE_DELAY * 86400); $smarty->assign('slots', $poll->format === 'D' ? $pollService->splitSlots($slots) : $slots); $smarty->assign('votes', $pollService->splitVotes($votes)); $smarty->assign('best_choices', $pollService->computeBestChoices($votes));