8000 Change datetime input to datetime-local · symfony/symfony@ff396ee · GitHub
[go: up one dir, main page]

Skip to content

Commit ff396ee

Browse files
committed
Change datetime input to datetime-local
1 parent f73d8d2 commit ff396ee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/Form/Extension/Core/Type/DateTimeType.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ public function buildView(FormView $view, FormInterface $form, array $options)
193193
// * the format matches the one expected by HTML5
194194
// * the html5 is set to true
195195
if ($options['html5'] && 'single_text' === $options['widget'] && self::HTML5_FORMAT === $options['format']) {
196-
$view->vars['type'] = 'datetime';
196+
$view->vars['type'] = 'datetime-local';
197197
}
198198
}
199199

0 commit comments

Comments
 (0)
0