-
Notifications
You must be signed in to change notification settings - Fork 286
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
kafka_consumer: fix wrong timezone when 'TZ' env is not set and downstream is mysql #1084
Conversation
Thanks for your contribution! The CI failure is related to https://github.com/pingcap/ticdc/pull/1087, it has nothing to do with this PR |
/run-kafka-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
/merge |
Your auto merge job has been accepted, waiting for:
|
/run-all-tests |
@dengqee merge failed. |
Signed-off-by: ti-srebot <ti-srebot@pingcap.com>
cherry pick to release-4.0 in PR #1095 |
kafka_consumer: fix wrong timezone when 'TZ' env is not set and downstream is mysql
Improve robustness.
What problem does this PR solve?
*: fix wrong timezone when env
TZ
is not set #512 fix wrong timezone in cdc, but kafka_consumer demo still have this problem, see kafka_consumer wrong timezone when no parameter ‘--timezone’ and env ‘TZ’ is not set #1082.What is changed and how it works?
This pr load local timezone by calling util.GetTimezone instead of use time.Local
Check List
Tests
Code changes
Has exported function/method change
Related changes
Need to cherry-pick to the release branch
Release note
kafka_consumer: fix wrong timezone when 'TZ' env is not set and downstream is mysql