It is an invalid value that should be (by spec) ignored by the
browser, but apparently some browsers don't ignore it, and when they
submit it back, it is converted to -0001-11-30 by our date parsing.
Bug: T209490
Change-Id: I2643767a0091c1c9db78706358903e1dc97b59d1
$formDescriptor['date'] = [
'type' => 'date',
'label-message' => 'date',
- 'default' => sprintf( "%04d-%02d-%02d", $year, $month, $day ),
+ 'default' => $year && $month && $day ? sprintf( "%04d-%02d-%02d", $year, $month, $day ) : '',
];
// Tag filter