Skip to content

Commit

Permalink
Format timestamp correctly
Browse files Browse the repository at this point in the history
Signed-off-by: Tsotne Tabidze <tsotne@tecton.ai>
  • Loading branch information
Tsotne Tabidze committed May 17, 2022
1 parent 4b2f0a8 commit ee1148d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion go/internal/feast/server/http_server.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import (
prototypes "github.com/feast-dev/feast/go/protos/feast/types"
"github.com/feast-dev/feast/go/types"
"net/http"
"time"
)

type httpServer struct {
Expand Down Expand Up @@ -190,7 +191,7 @@ func (s *httpServer) getOnlineFeatures(w http.ResponseWriter, r *http.Request) {
}
var timestamps []string
for _, timestamp := range vector.Timestamps {
timestamps = append(timestamps, timestamp.String())
timestamps = append(timestamps, timestamp.AsTime().Format(time.RFC3339))
}

result["statuses"] = statuses
Expand Down

0 comments on commit ee1148d

Please sign in to comment.