Merge pull request #182 from github/utc-streamer
row_event converts timestamps to UTC
This commit is contained in:
commit
a1baa1971c
2
vendor/github.com/siddontang/go-mysql/replication/row_event.go
generated
vendored
2
vendor/github.com/siddontang/go-mysql/replication/row_event.go
generated
vendored
@ -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
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user