-
-
Notifications
You must be signed in to change notification settings - Fork 760
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
ICU-22616 fix value returned by Calendar::getTimeInMillis() after call to Calendar::set() during ambiguous time #2771
Conversation
…l to Calendar::set() during ambiguous time
I'm bringing over my thoughts from ICU-22616. I think Christopher Chapman did nice work on the PR, but I believe there are some risks in making this change, and that it may be unnecessary if a small change to user code can accomplish the same thing.
Could the same outcome be achieved by modifying the calling code to add a call to If the consensus among ICU maintainers (I am not an active maintainer) is to accept this PR, then I strongly suggest narrowing the effect of the change to cases where the user has not set the local time offset. That is, the new logic should be enclosed in an if-block similar to this:
And tests should be added to confirm that Copying @yumaoka and @markusicu for visibilty. |
We discussed this in the ICU-TC meeting earlier today, Marcus posted a summary of the discussion here: Per the discussion, I'm going to hold off on this PR until we've had a chance to think about the issue some more. @poulsbo & @yumaoka I appreciate the guidance you given me on this. I'll be happy to make the changes and add the test cases Alan recommended above should we decide to go this route. |
Consensus in ICU-TC is not to change the code, but to update the documentation, probably in the class overview doc for Calendar. |
Mark suggests: somewhere below: * Ambiguous Wall Clock Time. When time offset from UTC has |
I think your comment is incomplete . |
TC discussion: Better for callers to be explicit about ambiguous-time resolution. |
Checklist