row_event converts timestamps to UTC
This commit is contained in:
parent
7c792d3ba3
commit
950fde2ad6
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