From: Alexander Ebert Date: Sun, 5 Jun 2016 11:01:45 +0000 (+0200) Subject: Fixed reference and datetime format X-Git-Tag: 3.0.0_Beta_1~1528 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=a454a266a0bd270cc1e501be85d0fbdfb28c6ad4;p=GitHub%2FWoltLab%2FWCF.git Fixed reference and datetime format --- 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; }