Is there any way to provide a custom toString patt...
# kotlinx-datetime
j
Is there any way to provide a custom toString pattern? I have
LocalDateTime
which I want to serialize with
yyyy-MM-dd HH:mm:ss
.
d
Not at the moment, working on it right now. But this format is simple enough, you just can do
localDateTime.toString().replace("T", " ")
.
j
Is there a YouTrack issue on this, so I can subscribe to progress?
d
We use Github for the
kotlinx-datetime
issue tracker. There are many issues regarding this, choose whichever you like! https://github.com/Kotlin/kotlinx-datetime/issues?q=is%3Aissue+is%3Aopen+label%3Aformatters
j
Nice, thanks 🙂
I will just use the
.replace
for now 👍