From 950fde2ad6bdd82216115c60e0ca0aec68e8d1eb Mon Sep 17 00:00:00 2001 From: Shlomi Noach Date: Mon, 22 Aug 2016 15:45:38 +0200 Subject: [PATCH] row_event converts timestamps to UTC --- vendor/github.com/siddontang/go-mysql/replication/row_event.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vendor/github.com/siddontang/go-mysql/replication/row_event.go b/vendor/github.com/siddontang/go-mysql/replication/row_event.go index 3fe8598..0e4eb17 100644 --- a/vendor/github.com/siddontang/go-mysql/replication/row_event.go +++ b/vendor/github.com/siddontang/go-mysql/replication/row_event.go @@ -609,7 +609,7 @@ func decodeTimestamp2(data []byte, dec uint16) (string, int, error) { return "0000-00-00 00:00:00", n, nil } - t := time.Unix(sec, usec*1000) + t := time.Unix(sec, usec*1000).UTC() return t.Format(TimeFormat), n, nil }