You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
diff --git a/app/classes/Framadate/Repositories/PollRepository.php b/app/classes/Framadate/Repositories/PollRepository.php
index 4a1e6ea..7cedca1 100644
--- a/app/classes/Framadate/Repositories/PollRepository.php
+++ b/app/classes/Framadate/Repositories/PollRepository.php
@@ -202,7 +202,17 @@ class PollRepository extends AbstractRepository {
$prepared->execute(); - return $prepared->fetchAll();
+ $polls = $prepared->fetchAll();
+
+ foreach ($polls as $poll) {
+ /**
+ * Hack to make date a proper DateTime
+ */
+ $poll->creation_date = Type::getType(Type::DATETIME)->convertToPhpValue($poll->creation_date, $this->connect->getDatabasePlatform());
+ $poll->end_date = Type::getType(Type::DATETIME)->convertToPhpValue($poll->end_date, $this->connect->getDatabasePlatform());
+ }
+ return $polls;
+
} /**
|