StarRocks / starrocks-connector-for-apache-flink

Apache License 2.0
189 stars 152 forks source link

[BugFix] Fix incorrect result for date formatting #366

Open dusukang opened 2 months ago

dusukang commented 2 months ago

What type of PR is this:

Which issues of this PR fixes :

Fixes #

Problem Summary(Required) :

When the job is in some time zones, Date type data will be converted to the previous day at 00:00 ~ 08:00. e.g. 2024-06-12 will be converted to 2024-06-11

Checklist:

CLAassistant commented 2 months ago

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.


dusukang seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.
You have signed the CLA already but the status is still pending? Let us recheck it.

dusukang commented 2 months ago

When SimpleDateFormat formats the date and time, it uses the default time zone of the JVM by default. If the default time zone of the JVM does not match the actual requirements, it will cause deviations in the time display.