Use a unix timestamp rather than a timestamppb
This commit is contained in:
parent
55c85d2a22
commit
b748846c55
4 changed files with 134 additions and 143 deletions
|
@ -8,7 +8,6 @@ import (
|
|||
"github.com/mdiluz/rove/pkg/game"
|
||||
"github.com/mdiluz/rove/pkg/rove"
|
||||
"github.com/mdiluz/rove/pkg/version"
|
||||
"google.golang.org/protobuf/types/known/timestamppb"
|
||||
)
|
||||
|
||||
// ServerStatus returns the status of the current server to a gRPC request
|
||||
|
@ -95,7 +94,7 @@ func (s *Server) Status(ctx context.Context, req *rove.StatusRequest) (response
|
|||
for _, log := range rover.Logs {
|
||||
logs = append(logs, &rove.Log{
|
||||
Text: log.Text,
|
||||
Time: timestamppb.New(log.Time),
|
||||
Time: log.Time.Unix(),
|
||||
})
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue