-
Notifications
You must be signed in to change notification settings - Fork 163
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
inconsistency problems of sub-minute offset in ZonedDateTime.from
#3099
Comments
Thanks for the report! Without digging into spec text, my preference is to accept a sub-minute offset only when it matches the actual offset up to its specified precision:
|
small correction: both |
Thanks for the correction; updated above. |
When the result for
For the same reason, in I think setting |
Maybe the point is what kind of result is desirable for this case in terms of compatibility, interoperability, and extensibility of the spec, which I'm not sure about. |
Actual offset is
-00:44:30
in this case, so accepting-00:45
(MATCH-MINUTES
) and-00:44:30
, rejecting-00:44:40
(wrong offset) makes a sense. The question is the 4th case, is it consistent to accept-00:45:00
?There is one more problem which I guess has same root cause (I haven't checked the spec yet though).
It seems that offset string
-11:20:00
is treated same to-11:20
(ambiguous offset) infrom
method. If both offset (before and after the transition) has sub-minute part, this problem doesn't happen.The text was updated successfully, but these errors were encountered: