From ee1148dd49be019f21f952e5364b0fd6124c2b4b Mon Sep 17 00:00:00 2001 From: Tsotne Tabidze Date: Tue, 17 May 2022 09:34:04 -0700 Subject: [PATCH] Format timestamp correctly Signed-off-by: Tsotne Tabidze --- go/internal/feast/server/http_server.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/go/internal/feast/server/http_server.go b/go/internal/feast/server/http_server.go index d126f848f9..0ceb4f0f50 100644 --- a/go/internal/feast/server/http_server.go +++ b/go/internal/feast/server/http_server.go @@ -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 { @@ -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