v79
02/20/2023, 10:10 PMkotlinx.datetime provides a default serializer for kotlinx.datetime.LocalDateTime which can only parse an ISO string like "2023-02-20T22:07:12.668". Unfortunately, JavaScript/TypeScript's Date().toISOString() produces a string like "2023-02-20T22:07:12.668Z" - with the extra Z at the end. Do I need to change all my LocalDateTime to Instant? Or write my own serializer? Seems a little bit of unnecessary work 😞 Or should I just hack it and chop off the 'Z' before posting my Json from the front end?CLOVIS
02/20/2023, 10:12 PMDate class is an Instant.v79
02/20/2023, 10:18 PMCLOVIS
02/21/2023, 8:30 AMLocalDateTime on the Kotlin side, and do not use Date on the JS side. If you want a UTC date time, use Instant on the Kotlin side and Date on the JS side.v79
02/21/2023, 9:07 AMCLOVIS
02/21/2023, 9:45 AM