Type converter from kotlinx.datetime.LocalTime to java.time.LocalTime? is not found for column #887
-
Upgraded to |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Hi! Could you give an example of which operation you're trying to perform? I might have missed a conversion doing this PR #843 but I want to be sure :) |
Beta Was this translation helpful? Give feedback.
-
Given an example like this. data class (
@ColumnName("Start")
val startedTime:LocalTime // java 8 DateTime
) Which works well in the previous version. Now I have to add a manual convert to make it work. dataFrame
.convert{ "Start"<kotlinx.datetime.LocalTime>()}.with{
it.toJavaLocalTime()
}
Even though we are using Kotlin in our backend, Java 8 Datetime is more popular than Kotlin DateTime. We do not want to introduce more dependencies that we do not use. |
Beta Was this translation helpful? Give feedback.
Ah I see, yes it was an oversight on my end. I changed the default datetime classes to kotlinx everywhere (because it was a bit mixed before) but I forgot to check automatic conversion was possible between the two.
You should still be allowed to use the java ones if you like of course, so I 'll make an issue to add the missing converters from kotlinx LocalTime to Java Localtime (and more). Thanks for letting us know!