Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ebean-joda] Joda JSON ISO8601 format for DateMidnight includes timezone #2967

Closed
rbygrave opened this issue Feb 14, 2023 · 0 comments
Closed
Assignees
Labels
Milestone

Comments

@rbygrave
Copy link
Member

Steps to reproduce

    JsonParser parser = jsonFactory.createParser(new StringReader("\"2023-01-23\""));
    JsonToken token = parser.nextToken();
    assertEquals(JsonToken.VALUE_STRING, token);
    DateMidnight dm = type.jsonRead(parser);
    String iso = type.toIsoFormat(dm);
    assertEquals("2023-01-23", iso);
org.opentest4j.AssertionFailedError: 
Expected :2023-01-23
Actual   :2023-01-23T00:00:00.000+13:00

As per https://github.com/ebean-orm/ebean/pull/2942/files

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant