update extend/fast/Form.php.

修改Form生成表单日期时间选择器参数错误,
修改后,生成后的表单,日期选择,可以使用默认

Signed-off-by: Lucy <info@huasituo.com>
pull/483/head
Lucy 2025-01-13 08:19:34 +00:00 committed by Gitee
parent 9bdf43e808
commit acaa619062
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
1 changed files with 1 additions and 1 deletions

View File

@ -579,7 +579,7 @@ EOD;
{
$defaults = [
'data-date-format' => "YYYY-MM-DD HH:mm:ss",
'data-use-current' => "true",
'data-date-use-current' => "true",
];
$value = is_numeric($value) ? date("Y-m-d H:i:s", $value) : $value;
$options = array_merge($defaults, $options);