Fix: Timestamp DecodeBinary is in UTC

Preserve previously existing behavior.

fixes #138
non-blocking
Jack Christensen 2021-11-24 07:57:51 -06:00
parent e80bc75409
commit 84bb47fb26
1 changed files with 1 additions and 1 deletions

View File

@ -144,7 +144,7 @@ func (dst *Timestamp) DecodeBinary(ci *ConnInfo, src []byte) error {
tim := time.Unix(
microsecFromUnixEpochToY2K/1000000+microsecSinceY2K/1000000,
(microsecFromUnixEpochToY2K%1000000*1000)+(microsecSinceY2K%1000000*1000),
)
).UTC()
*dst = Timestamp{Time: tim, Status: Present}
}