From a454a266a0bd270cc1e501be85d0fbdfb28c6ad4 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Sun, 5 Jun 2016 13:01:45 +0200 Subject: [PATCH] Fixed reference and datetime format --- wcfsetup/install/files/lib/system/poll/PollManager.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wcfsetup/install/files/lib/system/poll/PollManager.class.php b/wcfsetup/install/files/lib/system/poll/PollManager.class.php index 4b884a0c1c..f6a13c5376 100644 --- a/wcfsetup/install/files/lib/system/poll/PollManager.class.php +++ b/wcfsetup/install/files/lib/system/poll/PollManager.class.php @@ -162,7 +162,7 @@ class PollManager extends SingletonFactory { */ public function readFormParameters(array $postData = array()) { if (empty($postData)) { - $postData &= $_POST; + $postData =& $_POST; } // reset poll data and options prior to reading form input @@ -170,7 +170,7 @@ class PollManager extends SingletonFactory { // poll data if (isset($postData['pollEndTime'])) { - $d = \DateTime::createFromFormat('Y-m-d H:i', $postData['pollEndTime'], WCF::getUser()->getTimeZone()); + $d = \DateTime::createFromFormat('Y-m-d\TH:i:sP', $postData['pollEndTime'], WCF::getUser()->getTimeZone()); $this->pollData['endTime'] = ($d !== false) ? $d->getTimestamp() : 0; } -- 2.20.1