Skip to content

Problem between sql Date and joda LocalDate conversion #96

@PakhomovAlexander

Description

@PakhomovAlexander

Problem location: DateColumnLocalDateMapper.fromNonNullValue

How to reproduce:

DateColumnLocalDateMapper mapper = new DateColumnLocalDateMapper();
LocalDate convertedLocalDate = mapper.fromNonNullValue(Date.valueOf("1800-10-10"));
System.out.println(convertedLocalDate);

Result: 1800-10-09
Expected: 1800-10-10

This problem described here: ebean-orm/ebean#1652

And the fix of this problem here: ebean-orm/ebean@409c1d0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions