mirror of https://github.com/jackc/pgx.git
Fix: Timestamp DecodeBinary is in UTC
Preserve previously existing behavior. fixes #138non-blocking
parent
e80bc75409
commit
84bb47fb26
|
@ -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}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue