Skip to content

Commit 13e0556

Browse files
committed
[core] Make event timestamps UnixMilli
1 parent be955dc commit 13e0556

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

core/protos/protoutils.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,16 +22,16 @@
2222
* Intergovernmental Organization or submit itself to any jurisdiction.
2323
*/
2424

25-
2625
package pb
2726

2827
import (
28+
"fmt"
2929
"time"
3030
)
3131

3232
func WrapEvent(ce isEvent_Payload) *Event {
3333
return &Event{
34-
Timestamp:time.Now().Format(time.RFC3339),
35-
Payload: ce,
34+
Timestamp: fmt.Sprintf("%d", time.Now().UnixMilli()),
35+
Payload: ce,
3636
}
3737
}

0 commit comments

Comments
 (0)