mirror of
https://github.com/jackc/pgx.git
synced 2025-05-06 23:50:15 +00:00
Fix: Timestamp DecodeBinary is in UTC
Preserve previously existing behavior. fixes #138
This commit is contained in:
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…
x
Reference in New Issue
Block a user