Skip to content

Commit

Permalink
Merge pull request #115 from bolt/fix/carbon_function_to_save_datetim…
Browse files Browse the repository at this point in the history
…e_contenttype

Fixing Carbon function to save field type date of contenttype
  • Loading branch information
bobdenotter authored Jan 13, 2023
2 parents 78c1047 + 75fc51b commit db28c43
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/EventSubscriber/ContentTypePersister.php
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ private function setContentFields(Content $content, Form $form, PostSubmitEvent
}

if ($value instanceof \DateTimeInterface) {
$value = Carbon::createFromInterface($value);
$value = Carbon::instance($value);
}

$value = (string) $value;
Expand Down

0 comments on commit db28c43

Please sign in to comment.