Skip to content

Commit

Permalink
[core] Make event timestamps UnixMilli
Browse files Browse the repository at this point in the history
  • Loading branch information
teo committed Mar 1, 2024
1 parent be955dc commit 13e0556
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions core/protos/protoutils.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,16 +22,16 @@
* Intergovernmental Organization or submit itself to any jurisdiction.
*/


package pb

import (
"fmt"
"time"
)

func WrapEvent(ce isEvent_Payload) *Event {
return &Event{
Timestamp:time.Now().Format(time.RFC3339),
Payload: ce,
Timestamp: fmt.Sprintf("%d", time.Now().UnixMilli()),
Payload: ce,
}
}

0 comments on commit 13e0556

Please sign in to comment.