Unexpected error running Liquibase: java.time.LocalDateTime cannot be cast to java.lang.String

I got this error message when I run liquibase commands. How can I solve this?

Unexpected error running Liquibase: java.time.LocalDateTime cannot be cast to java.lang.String
For more information, please use the --logLevel flag
[2022-05-18 11:41:19] SEVERE [liquibase.integration] Unexpected error running Liquibase: java.time.LocalDateTime cannot be cast to java.lang.String
liquibase.command.CommandExecutionException: java.lang.ClassCastException: java.time.LocalDateTime cannot be cast to java.lang.String

What version of Liquibase are you running? This issue was resolved in 4.3.1. If you’re using a version prior to that, updating will fix the error.