Skip to content

Commit db28c43

Browse files
authored
Merge pull request #115 from bolt/fix/carbon_function_to_save_datetime_contenttype
Fixing Carbon function to save field type date of contenttype
2 parents 78c1047 + 75fc51b commit db28c43

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/EventSubscriber/ContentTypePersister.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ private function setContentFields(Content $content, Form $form, PostSubmitEvent
9393
}
9494

9595
if ($value instanceof \DateTimeInterface) {
96-
$value = Carbon::createFromInterface($value);
96+
$value = Carbon::instance($value);
9797
}
9898

9999
$value = (string) $value;

0 commit comments

Comments
 (0)