Skip to content

Commit

Permalink
fix(admin): datetimeimmutable for post.createAt field
Browse files Browse the repository at this point in the history
  • Loading branch information
Grafikart committed Nov 6, 2024
1 parent b912222 commit 56666f7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Http/Admin/Form/PostForm.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@ public function buildForm(FormBuilderInterface $builder, array $options): void
->add('title', TextType::class)
->add('slug', TextType::class)
->add('image', AttachmentType::class)
->add('createdAt', DateTimeType::class)
->add('createdAt', DateTimeType::class, [
'input' => 'datetime_immutable',
])
->add('category', EntityType::class, [
'class' => Category::class,
'choice_label' => 'name',
Expand Down

0 comments on commit 56666f7

Please sign in to comment.