Cherrio LLC
06/04/2026, 11:15 AM// Using exposed-kotlin-datetime (recommended)
Events.insert {
it[scheduledAt] = Clock.System.now().toOffsetDateTime(TimeZone.UTC)
}
It seems timestampWithTimeZone will always expect java.time.OffsetDateTime
Is there something I am missing?tonfel
06/04/2026, 3:44 PMClock.System.now() is kotlin.Instant therefore you should use
Clock.System.now().toJavaInstant().atOffset(ZoneOffset.UTC)Chantal Loncle
06/07/2026, 11:41 PMtoOffsetDateTime() in the Exposed API is a method in the OffsetDateTimeColumnType class api ref. So it's not callable on a kotlin.time.Instant.
Unless maybe you were referring to this toOffsetDateTime() from ZonedDateTime, I'd suggest trying the solution above.Cherrio LLC
06/08/2026, 6:45 AMtoOffsetDateTime()Cherrio LLC
06/08/2026, 6:45 AMChantal Loncle
06/08/2026, 4:47 PMCherrio LLC
06/08/2026, 9:32 PMNon-class container of a type parameter is not supported: private final java.lang.Object com.bertillon.handpay.domain.auth.GeneratedUserRepository.transaction(kotlin.jvm.functions.Function1,kotlin.coroutines.Continuation) (T)
or now:
> A failure occurred while executing org.jetbrains.exposed.v1.gradle.plugin.GenerateMigrationsWorker
> Type parameter not found: 0
I know i can group my tables in a package and point it there, but it makes it less flexible.Cherrio LLC
06/08/2026, 10:04 PMUserTable.selectAll().map(::toEntity)
Kotlin reflect is unable to parse the metadata for map because of its generic parameterChantal Loncle
06/09/2026, 1:44 PMUserTable is a basic standard Exposed table object (not a subclass etc). But because you have DSL queries and statements mixed into the same package, the plugin is attempting to parse these lines as table objects? I'll try to reproduce it and see what we an do on our end.Cherrio LLC
06/09/2026, 3:54 PM