After checking youyour module provided for me on git, I fix it withgithub and some reverse-engineering I find out the problem is on create('datetime')
and you should use create('created')
So the following code
$fields['date'] = BaseFieldDefinition::create('created')
->setLabel(t('DateTime'))
->setDescription(t('Date and time.'))
->setDisplayOptions('view', array(
'label' => 'above',
'type' => 'timestamp',
'weight' => -4,
))
->setDisplayOptions('form', array(
'type' => 'datetime_timestamp',
'weight' => -4,
))
->setDisplayConfigurable('form', TRUE)
->setDisplayConfigurable('view', TRUE);
and get following resultsResults the below image for me. it seems it's Ok now.