Skip to content

Commit

Permalink
pkg/tz(ticdc): better log
Browse files Browse the repository at this point in the history
  • Loading branch information
Rustin170506 committed Apr 18, 2023
1 parent 82bb49d commit 671c134
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pkg/sink/mysql/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,9 @@ func getSafeMode(values url.Values, safeMode *bool) error {
func getTimezone(ctxWithTimezone context.Context, values url.Values, timezone *string) error {
const pleaseSpecifyTimezone = "We recommend that you specify the time-zone explicitly. " +
"Please make sure that the timezone of the TiCDC server, " +
"sink-uri and the downstream database are consistent."
"sink-uri and the downstream database are consistent. " +
"If the downstream database does not load the timezone information, " +
"you can refer to https://dev.mysql.com/doc/refman/8.0/en/mysql-tzinfo-to-sql.html."
serverTimezone := contextutil.TimezoneFromCtx(ctxWithTimezone)
if _, ok := values["time-zone"]; !ok {
// If time-zone is not specified, use the timezone of the server.
Expand Down

0 comments on commit 671c134

Please sign in to comment.