applier always uses UTC
This commit is contained in:
parent
b38af6c29e
commit
ac304def4d
@ -908,10 +908,10 @@ func (this *Applier) ApplyDMLEventQuery(dmlEvent *binlog.BinlogDMLEvent) error {
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
sessionQuery := fmt.Sprintf(`SET
|
sessionQuery := `SET
|
||||||
SESSION time_zone = '%s',
|
SESSION time_zone = '+00:00',
|
||||||
sql_mode = CONCAT(@@session.sql_mode, ',STRICT_ALL_TABLES')
|
sql_mode = CONCAT(@@session.sql_mode, ',STRICT_ALL_TABLES')
|
||||||
`, this.migrationContext.ApplierTimeZone)
|
`
|
||||||
if _, err := tx.Exec(sessionQuery); err != nil {
|
if _, err := tx.Exec(sessionQuery); err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user