We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0a1b2ba commit 9b4a950Copy full SHA for 9b4a950
spec/timestamp.go
@@ -9,7 +9,7 @@ type Timestamp uint64
9
10
// AsTimestamp turns a time.Time into a millisecond posix timestamp.
11
func AsTimestamp(t time.Time) Timestamp {
12
- return Timestamp(t.UnixNano() / 1000000)
+ return Timestamp(t.UnixMilli())
13
}
14
15
// Time turns a millisecond posix timestamp into a UTC time.Time
0 commit comments