From e902568a91f92a00a7384fb1c8ca19357f194d13 Mon Sep 17 00:00:00 2001 From: Meritoo Date: Sun, 22 Oct 2017 18:20:01 +0200 Subject: [PATCH] Participant & Survey - update creating instance od DateTime from string --- src/Result/Item/Participant.php | 4 ++-- src/Result/Item/Survey.php | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Result/Item/Participant.php b/src/Result/Item/Participant.php index 6d87f1f..dcaf49e 100644 --- a/src/Result/Item/Participant.php +++ b/src/Result/Item/Participant.php @@ -216,7 +216,7 @@ class Participant extends BaseItem break; } - $this->validFrom = Date::getDateTime($value, false, 'Y-m-d H:i:s'); + $this->validFrom = Date::getDateTime($value, true); break; case 'validuntil': @@ -224,7 +224,7 @@ class Participant extends BaseItem break; } - $this->validUntil = Date::getDateTime($value, false, 'Y-m-d H:i:s'); + $this->validUntil = Date::getDateTime($value, true); break; } } diff --git a/src/Result/Item/Survey.php b/src/Result/Item/Survey.php index 0f83073..f793545 100644 --- a/src/Result/Item/Survey.php +++ b/src/Result/Item/Survey.php @@ -74,7 +74,7 @@ class Survey extends BaseItem break; } - $this->startsAt = Date::getDateTime($value, false, 'Y-m-d H:i:s'); + $this->startsAt = Date::getDateTime($value, true); break; case 'expires': @@ -82,7 +82,7 @@ class Survey extends BaseItem break; } - $this->expiresAt = Date::getDateTime($value, false, 'Y-m-d H:i:s'); + $this->expiresAt = Date::getDateTime($value, true); break; case 'active':