From ac304def4d919ba6dd4538a1764d6234c34c4555 Mon Sep 17 00:00:00 2001 From: Shlomi Noach Date: Thu, 13 Oct 2016 13:08:02 +0200 Subject: [PATCH] applier always uses UTC --- go/logic/applier.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/go/logic/applier.go b/go/logic/applier.go index a45bfe0..1514ed4 100644 --- a/go/logic/applier.go +++ b/go/logic/applier.go @@ -908,10 +908,10 @@ func (this *Applier) ApplyDMLEventQuery(dmlEvent *binlog.BinlogDMLEvent) error { if err != nil { return err } - sessionQuery := fmt.Sprintf(`SET - SESSION time_zone = '%s', + sessionQuery := `SET + SESSION time_zone = '+00:00', sql_mode = CONCAT(@@session.sql_mode, ',STRICT_ALL_TABLES') - `, this.migrationContext.ApplierTimeZone) + ` if _, err := tx.Exec(sessionQuery); err != nil { return err }