kotlinx-datetime
kotlinx-datetime copied to clipboard
Separate ISO and default serializers
Sometimes, X.Formats.ISO and X.parse()/X.toString() behave subtly differently; currently, it's the case for LocalDateTime and LocalTime.
With this change, every entity that supports custom formats obtains a separate default serializer in addition to the
ISO 8601 serializer, which now properly delegates to the corresponding DateTimeFormat.
Fixes #351