Skip to content

Commit ee1148d

Browse files
author
Tsotne Tabidze
committed
Format timestamp correctly
Signed-off-by: Tsotne Tabidze <tsotne@tecton.ai>
1 parent 4b2f0a8 commit ee1148d

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

go/internal/feast/server/http_server.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ import (
1111
prototypes "github.com/feast-dev/feast/go/protos/feast/types"
1212
"github.com/feast-dev/feast/go/types"
1313
"net/http"
14+
"time"
1415
)
1516

1617
type httpServer struct {
@@ -190,7 +191,7 @@ func (s *httpServer) getOnlineFeatures(w http.ResponseWriter, r *http.Request) {
190191
}
191192
var timestamps []string
192193
for _, timestamp := range vector.Timestamps {
193-
timestamps = append(timestamps, timestamp.String())
194+
timestamps = append(timestamps, timestamp.AsTime().Format(time.RFC3339))
194195
}
195196

196197
result["statuses"] = statuses

0 commit comments

Comments
 (0)