bson-kotlinx should support kotlin.time.Instant

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Unresolved
    • Priority: Unknown
    • None
    • Affects Version/s: None
    • Component/s: Kotlin
    • None
    • None
    • Java Drivers
    • None
    • None
    • None
    • None
    • None
    • None

      The following class is serialized differently when using `bson-kotlin` and `bson-kotlinx`:

      @Serializable
      data class U(
          val x: kotlin.time.Instant,
      )

      With `bson-kotlin`, the field `x` is correctly serialized as a DateTime.

      However, when using `bson-kotlinx`, it is serialized as a String.

      This means that this class doesn't pass the Datetime tests.

            Assignee:
            Nabil Hachicha
            Reporter:
            Ivan Canet
            None
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: