Skip to content
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/timezone #1086

Closed
wants to merge 9 commits into from
Closed

Kafka consumer/timezone #1086

wants to merge 9 commits into from

Conversation

dengqee
Copy link
Contributor

@dengqee dengqee commented Nov 17, 2020

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

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

@ti-srebot ti-srebot added the first-time-contributor Indicates that the PR was contributed by an external member and is a first-time contributor. label Nov 17, 2020
@dengqee dengqee closed this Nov 17, 2020
@dengqee dengqee deleted the kafka_consumer/timezone branch November 17, 2020 08:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
first-time-contributor Indicates that the PR was contributed by an external member and is a first-time contributor.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants