From c3ad8d5d2d8511fb6591163abbc8614baafe7c73 Mon Sep 17 00:00:00 2001 From: ycc Date: Fri, 8 Dec 2023 17:08:01 +0100 Subject: [PATCH] start time format fix --- server/router.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/router.go b/server/router.go index 2740a52..58ce423 100644 --- a/server/router.go +++ b/server/router.go @@ -29,7 +29,7 @@ func NewRedisRouter(server *Identity, redisUrl string, password string, db int, r.InvitationTimeout = invitationTimeout r.Context = context.Background() // set start for uptime - err := r.Client.Set("statistics:start", time.Now(), 0).Err() + err := r.Client.Set("statistics:start", time.Now().Format(time.RFC3339), 0).Err() if err != nil { panic(err) }