-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Micronaut fails for LocalDateTime method parameter #9969
Comments
I'm on 3.10.x and I did a simple fix. 4.x logic is significantly different. What is the best aproach: backport or keep it as is? |
This does not happen in Micronaut Framework 4, does it? |
ok looking at the 3.x code it seems this is an issue because youre trying to return an LDT in a format that needs an offset. imo it is correct that this fails and this is not a bug. |
@sdelamo the problem is on Micronaut 3.10.1. On 4.x LocalDateTime handled properly. To reproduce the problem, just copy test-case without fix and you should see |
@yawkat passing data with fake offset (UTC) is for minimizing changes in code. I disagree that HTTP Client should fail because it can't correctly serialize and deserialize some class from the core JDK because for some reason it decided that you can't pass timestamp without offset. |
We should not hallucinate a time zone. If you want to produce a string that contains a zone/offset, you must use a type that includes the offset. |
@yawkat I want to be able to pass |
I think this can be closed via #10027 |
Expected Behavior
You can pass LocalDateTime as parameter
Actual Behaviour
Steps To Reproduce
No response
Environment Information
No response
Example Application
No response
Version
3.10.1
The text was updated successfully, but these errors were encountered: