Skip to content

Default Column[LocalDateTime] instance lose nanoseconds precision #525

@oyvindberg

Description

@oyvindberg

I'll submit this in the same tradition as #408 and #325 .

I updated the repro from #408 to LocalDateTime to show the same problem again.

https://github.com/oyvindberg/play-anorm-nano-precision

[info] - should insert a LocalDateTime WITHOUT nano precision and return the inserted value
[info] - should insert a LocalDateTime instant WITH nano precision and return the inserted value *** FAILED ***
[info]   2021-01-06T09:22:31.222 was not equal to 2021-01-06T09:22:31.222456 (ZonedDateTimeRepositoryTest.scala:62)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions