fix: timestamp conversion from uint64

This commit is contained in:
Richard Ramos 2022-03-02 10:33:00 -04:00
parent 598b83757c
commit 0b1c06403b
1 changed files with 2 additions and 1 deletions

View File

@ -5,6 +5,7 @@ import (
"errors" "errors"
"fmt" "fmt"
"sync" "sync"
"time"
"github.com/status-im/go-waku/waku/v2/node" "github.com/status-im/go-waku/waku/v2/node"
"github.com/status-im/go-waku/waku/v2/protocol" "github.com/status-im/go-waku/waku/v2/protocol"
@ -225,7 +226,7 @@ func (msg *ReceivedMessage) Open(watcher *Filter) (result *ReceivedMessage) {
result.Signature = raw.Signature result.Signature = raw.Signature
result.Src = raw.PubKey result.Src = raw.PubKey
result.Sent = uint32(msg.Envelope.Message().Timestamp) result.Sent = uint32(msg.Envelope.Message().Timestamp / int64(time.Second))
result.Topic = StringToTopic(msg.Envelope.Message().ContentTopic) result.Topic = StringToTopic(msg.Envelope.Message().ContentTopic)
return result return result