Participant & Survey - update creating instance od DateTime from string

This commit is contained in:
Meritoo
2017-10-22 18:42:07 +02:00
parent ba9160cccf
commit 472807ee33
2 changed files with 4 additions and 4 deletions

View File

@@ -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;
}
}

View File

@@ -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':