You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for the feedback! We discussed this in the 2024-07-11 meeting. Yes, this is unfortunately a case where there's not one right answer, so we're going to stick with the default that we have. In one context this is unfriendly, in another it's useful: e.g. #2840 (comment)
In ZonedDateTime.from(), the overflow option apparently defaults to constrain (rather than reject).
The effect of this is to silently update parameters without warning. This seems unfriendly behaviour, and a likely foot-gun.
I encountered this in the following context:
I was anticipating a resulting time of midnight (or otherwise an error), and was very surprised to find it was
2024-03-31T23:00:00+00:00[UTC]
.I would prefer to be warned of this, and explicitly set overflow to constrain if I actually wanted such behaviour.
The text was updated successfully, but these errors were encountered: