From 99eee326abe217a901fbc6f8415e70f64bcb5959 Mon Sep 17 00:00:00 2001 From: aymm Date: Sat, 27 Mar 2021 10:42:36 +0000 Subject: [PATCH] Fixed poll closed date comparison --- src/Entities/Poll.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Entities/Poll.php b/src/Entities/Poll.php index 06b89e6..ac4e9d9 100644 --- a/src/Entities/Poll.php +++ b/src/Entities/Poll.php @@ -125,7 +125,7 @@ class Poll public function canVote() { $is_authenticated = $this->api->isAuthenticated(false, true); - $is_closed = $this->closed_at >= new \DateTime(); + $is_closed = $this->closed_at <= new \DateTime(); return $is_authenticated && !$is_closed; }