Skip to content

Commit

Permalink
Fix default DateTime field format
Browse files Browse the repository at this point in the history
  • Loading branch information
Zales0123 committed Jul 5, 2019
1 parent e87e859 commit 0cd9791
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Component/FieldTypes/DatetimeFieldType.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public function render(Field $field, $data, array $options)
*/
public function configureOptions(OptionsResolver $resolver): void
{
$resolver->setDefault('format', 'Y:m:d H:i:s');
$resolver->setDefault('format', 'Y-m-d H:i:s');
$resolver->setAllowedTypes('format', 'string');
}
}

0 comments on commit 0cd9791

Please sign in to comment.