From 472807ee33e20da3d6084cdda43100951b9997fa Mon Sep 17 00:00:00 2001 From: Meritoo Date: Sun, 22 Oct 2017 18:42:07 +0200 Subject: [PATCH] Participant & Survey - update creating instance od DateTime from string --- src/LimeSurvey/Result/Item/Participant.php | 4 ++-- src/LimeSurvey/Result/Item/Survey.php | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/LimeSurvey/Result/Item/Participant.php b/src/LimeSurvey/Result/Item/Participant.php index 19590fc..0d7e879 100644 --- a/src/LimeSurvey/Result/Item/Participant.php +++ b/src/LimeSurvey/Result/Item/Participant.php @@ -218,7 +218,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': @@ -226,7 +226,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/LimeSurvey/Result/Item/Survey.php b/src/LimeSurvey/Result/Item/Survey.php index 52265d9..08f1b84 100644 --- a/src/LimeSurvey/Result/Item/Survey.php +++ b/src/LimeSurvey/Result/Item/Survey.php @@ -76,7 +76,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': @@ -84,7 +84,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':