mirror of
https://github.com/wiosna-dev/limesurvey-api-client.git
synced 2026-03-12 10:11:49 +01:00
Participant & Survey - update creating instance od DateTime from string
This commit is contained in:
@@ -218,7 +218,7 @@ class Participant extends BaseItem
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->validFrom = Date::getDateTime($value, false, 'Y-m-d H:i:s');
|
$this->validFrom = Date::getDateTime($value, true);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 'validuntil':
|
case 'validuntil':
|
||||||
@@ -226,7 +226,7 @@ class Participant extends BaseItem
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->validUntil = Date::getDateTime($value, false, 'Y-m-d H:i:s');
|
$this->validUntil = Date::getDateTime($value, true);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -76,7 +76,7 @@ class Survey extends BaseItem
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->startsAt = Date::getDateTime($value, false, 'Y-m-d H:i:s');
|
$this->startsAt = Date::getDateTime($value, true);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 'expires':
|
case 'expires':
|
||||||
@@ -84,7 +84,7 @@ class Survey extends BaseItem
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->expiresAt = Date::getDateTime($value, false, 'Y-m-d H:i:s');
|
$this->expiresAt = Date::getDateTime($value, true);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 'active':
|
case 'active':
|
||||||
|
|||||||
Reference in New Issue
Block a user