Repository navigation
Conversation
|
Hooray! The files in the branch are the same across the force-push. 😃 ~ Your Friendly Jira-GitHub PR Checker Bot |
Contributor
Author
* Try to detect when DST is turned off manually on Windows. (not tested) Find the non-DST offset and map a Windows timezone to a GMT+ zone. * Refactor uprv_detectWindowsTimeZone
|
Hooray! The files in the branch are the same across the force-push. 😃 ~ Your Friendly Jira-GitHub PR Checker Bot |
jefgen
requested changes
Sep 4, 2020
Also, take care of other review comments.
Contributor
Author
|
@jefgen Thank you for taking a look. Please, take another look. I addressed your comments. Thanks again. |
Contributor
Author
|
@jefgen , PTAL. Thanks :-) ! |
jefgen
reviewed
Sep 10, 2020
| // Note '-' before 'utcOffsetMin'. The timezone ID's sign convention | ||
| // is that a timezone ahead of UTC is Etc/GMT-<offset> and a timezone | ||
| // behind UTC is Etc/GMT+<offset>. | ||
| snprintf(gmtOffsetTz, 11, "Etc/GMT%+d", -utcOffsetMins / 60); |
Member
There was a problem hiding this comment.
I think it might also be good to check the return from snprintf, just to make sure that we don't exceed the buffer size of 11.
If we do, then there was somehow a bad value obtained from the dynamicTZI.Bias. This shouldn't happen, but it might be better to be defensive perhaps.
3 of 5 tasks
3 of 5 tasks
This was referenced Jan 26, 2021
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Try to detect when DST is turned off manually on Windows. (not tested)
Find the non-DST offset and map a Windows timezone to a GMT+
zone.
Refactor uprv_detectWindowsTimeZone
Checklist