We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 30419ac commit 0c6811bCopy full SHA for 0c6811b
1 file changed
xid.go
@@ -42,7 +42,7 @@ func NewXIDWithTime(timestamp int64) (x XID) {
42
43
// Time returns the timestamp part of the id.
44
func (x XID) Time() time.Time {
45
- return time.Unix(int64(x[0])<<32|int64(x[1])<<16|int64(x[2])<<8|int64(x[3]), 0)
+ return time.Unix(int64(x[0])<<24|int64(x[1])<<16|int64(x[2])<<8|int64(x[3]), 0)
46
}
47
48
// Machine returns the 3-byte machine id part of the id.
0 commit comments