diff --git a/internal/webserver/handler-api.go b/internal/webserver/handler-api.go index 3d60e7c..bbecd52 100644 --- a/internal/webserver/handler-api.go +++ b/internal/webserver/handler-api.go @@ -86,7 +86,7 @@ func (h *handler) apiLogin(w http.ResponseWriter, r *http.Request, ps httprouter Session string `json:"session"` Account model.Account `json:"account"` Expires string `json:"expires"` - }{strSessionID, account, time.Now().Add(expTime).Format(time.RFC1123)} + }{strSessionID, account, time.Now().UTC().Add(expTime).Format(time.RFC1123)} w.Header().Set("Content-Type", "application/json") err = json.NewEncoder(w).Encode(&loginResult)