Commit c5035616 authored by Thomas Löffler's avatar Thomas Löffler
Browse files

Set expire date to not null because of strict database

parent e573c62e
Pipeline #9227 passed with stages
in 6 minutes and 8 seconds
......@@ -517,6 +517,10 @@ class Extension extends \TYPO3\CMS\Extbase\DomainObject\AbstractEntity
*/
public function setExpire(\DateTime $expire = null)
{
if ($expire === null) {
$expire = new \DateTime();
$expire->setTimestamp(0);
}
$this->expire = $expire;
}
......
......@@ -177,7 +177,8 @@ return [
'label' => 'LLL:EXT:ter_fe2/Resources/Private/Language/locallang_db.xlf:tx_terfe2_domain_model_extension.expire',
'config' => [
'type' => 'none',
'format' => 'datetime'
'format' => 'datetime',
'default' => 0,
],
],
'likes' => [
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment