-
Notifications
You must be signed in to change notification settings - Fork 5.9k
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
timeutil: do not use system files to verify timezone #13593
Conversation
Signed-off-by: Shuaipeng Yu <[email protected]>
Codecov Report
@@ Coverage Diff @@
## master #13593 +/- ##
===========================================
Coverage 80.0622% 80.0622%
===========================================
Files 473 473
Lines 116362 116362
===========================================
Hits 93162 93162
Misses 15847 15847
Partials 7353 7353 |
For getting system's time zone, You could use Related PR #13614 |
Thanks for your suggestion, @Deardrops ! But I think it is not the key point of |
Signed-off-by: Shuaipeng Yu <[email protected]>
/run-all-tests |
Signed-off-by: Shuaipeng Yu <[email protected]>
/run-all-tests |
/run-common-test |
1 similar comment
/run-common-test |
@breeswish PTAL |
Signed-off-by: Shuaipeng Yu <[email protected]>
Signed-off-by: Shuaipeng Yu <[email protected]>
/run-all-tests |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. @zhexuany PTAL
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
/run-all-tests |
Signed-off-by: Shuaipeng Yu [email protected]
What problem does this PR solve?
Use some system files to verify timezone making TiDB not portable.
What is changed and how it works?
Use time.LoadLocation to verify the timezone.
Check List
Tests
Code changes
Related changes