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

LocalDate to Date conversion changes date value when dealing with pre Gregorian dates #11494

Open
erkieh opened this issue Jan 8, 2025 · 0 comments

Comments

@erkieh
Copy link
Contributor

erkieh commented Jan 8, 2025

Expected Behavior

LocalDate to Date conversion preserves value

Actual Behaviour

Micronaut Data persists Date as LocalDate - 10 days when persisting preGregorian values.

Steps To Reproduce

Run DateConversionTest
2 tests fail because Date and LocalDate epoch difference is handled differently before the Julian to Gregorian Calendar switch on 15 October 1582

Environment Information

No response

Example Application

https://github.com/erkieh/micronaut-date-conversion

Version

4.7.2

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

No branches or pull requests

1 participant