Mati Galli
01/21/2021, 7:41 PM@Serializable
a java.util.Date
with this format 2018-11-14T13:25:30Z
? I´m using Ktor and kotlinx.serialization
sigmadelta
01/21/2021, 8:14 PMPaul Griffith
01/21/2021, 9:44 PMjava.util.Date
(which are soft-deprecated anyways):Paul Griffith
01/21/2021, 9:45 PMfun String.toInstantOrNull(): Instant? = runCatching { Instant.parse(this) }.getOrNull()
Mati Galli
01/21/2021, 11:40 PM