From 352b6fb23ec5ebe47eab0e68afec5f5ae6594e25 Mon Sep 17 00:00:00 2001 From: Marvin M <marvin@aboca.do> Date: Sun, 17 Sep 2023 09:10:34 +0000 Subject: [PATCH] make sure timestamp is in UTC format, else web app with throw an error --- server_apps.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server_apps.go b/server_apps.go index fbc1aac..30e508e 100644 --- a/server_apps.go +++ b/server_apps.go @@ -569,7 +569,7 @@ func (s *server) handleApps(w http.ResponseWriter, r *http.Request) { } resp := res{ - DT: time.Now(), + DT: time.Now().UTC(), } for _, a := range apps { if a.appInfo == nil { @@ -637,7 +637,7 @@ func (s *server) handleAppShame(w http.ResponseWriter, r *http.Request) { } resp := res{ - DT: time.Now(), + DT: time.Now().UTC(), } for _, shame := range appShame { // Guarenteed to be exactly 2 parts because of the regex -- GitLab