Skip to content

Commit

Permalink
fix bad refactor
Browse files Browse the repository at this point in the history
Signed-off-by: Andres Taylor <[email protected]>
  • Loading branch information
systay committed Feb 3, 2025
1 parent 7d2ff8d commit 1676c76
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions go/vt/wrangler/vdiff.go
Original file line number Diff line number Diff line change
Expand Up @@ -621,8 +621,8 @@ func (df *vdiff) adjustForSourceTimeZone(targetSelectExprs sqlparser.SelectExprs
if fieldType == querypb.Type_DATETIME {
convertTZFuncExpr = sqlparser.NewFuncExpr("convert_tz",
colAs,
sqlparser.NewStrLiteral(df.sourceTimeZone),
sqlparser.NewStrLiteral(df.targetTimeZone))
sqlparser.NewStrLiteral(df.targetTimeZone),
sqlparser.NewStrLiteral(df.sourceTimeZone))
log.Infof("converting datetime column %s using convert_tz()", colName)
newSelectExprs = append(newSelectExprs, &sqlparser.AliasedExpr{Expr: convertTZFuncExpr, As: colAs.Name})
converted = true
Expand Down

0 comments on commit 1676c76

Please sign in to comment.