Problem/Motivation
The InputDemo form contains default values for 2 date related elements:
// Date.
$form['expiration'] = [
'#type' => 'date',
'#title' => $this->t('Content expiration'),
'#default_value' => ['year' => 2020, 'month' => 2, 'day' => 15],
'#description' => 'Date, #type = date',
];
// Date-time.
$form['datetime'] = [
'#type' => 'datetime',
'#title' => 'Date Time',
'#date_increment' => 1,
'#date_timezone' => date_default_timezone_get(),
'#default_value' => date_default_timezone_get(),
'#description' => $this->t('Date time, #type = datetime'),
];
However, these are not displayed.

Steps to reproduce
1. Enable Form Examples
2. View /examples/form-api-example/input-demo
3. Confirm default value for "Content expiration"
4. Confirm default value for "Date Time"
Comments
Comment #3
tyler36 commentedComment #4
schillerm commentedHi tyler, I tested out MR !28 and it fixes the problem. Default dates now showing.
Tested on D9.5.0 site (php 8.1).
+1 for RTBC from me.
Comment #6
avpadernoI have updated the issue fork which was one commit behind the upstream repository.
Comment #7
avpadernoComment #9
avpaderno