diff --git a/exposed-java-time/src/main/kotlin/org/jetbrains/exposed/sql/javatime/JavaDateColumnType.kt b/exposed-java-time/src/main/kotlin/org/jetbrains/exposed/sql/javatime/JavaDateColumnType.kt index 808403e122..365c145ac9 100644 --- a/exposed-java-time/src/main/kotlin/org/jetbrains/exposed/sql/javatime/JavaDateColumnType.kt +++ b/exposed-java-time/src/main/kotlin/org/jetbrains/exposed/sql/javatime/JavaDateColumnType.kt @@ -271,7 +271,6 @@ class JavaOffsetDateTimeColumnType : ColumnType(), IDateColumnType { is OffsetDateTime -> { when (currentDialect) { is SQLiteDialect -> "'${value.format(SQLITE_OFFSET_DATE_TIME_FORMATTER)}'" - is MysqlDialect -> "'${value.format(MYSQL_OFFSET_DATE_TIME_FORMATTER)}'" else -> "'${value.format(DEFAULT_OFFSET_DATE_TIME_FORMATTER)}'" } } @@ -299,7 +298,7 @@ class JavaOffsetDateTimeColumnType : ColumnType(), IDateColumnType { is OffsetDateTime -> { when (currentDialect) { is SQLiteDialect -> value.format(SQLITE_OFFSET_DATE_TIME_FORMATTER) - is MysqlDialect -> value.format(MYSQL_OFFSET_DATE_TIME_FORMATTER) + is MysqlDialect -> value else -> value } }