From 91c5cf520774ada97652d57d1b00d18395a61ae2 Mon Sep 17 00:00:00 2001 From: Ian McEwen Date: Wed, 18 Sep 2024 14:42:34 -0700 Subject: [PATCH] Mark the planned end date read from the database as a local timestamp --- internal/internal.go | 1 + 1 file changed, 1 insertion(+) diff --git a/internal/internal.go b/internal/internal.go index c3ab5ae..c6f3394 100644 --- a/internal/internal.go +++ b/internal/internal.go @@ -1004,6 +1004,7 @@ func (i *Internal) getTimeLimit(ctx context.Context, userID, id string) (map[str if err != nil { return nil, errors.Wrapf(err, "error getting time limit for user %s on analysis %s", userID, id) } + v = v.(time.Time).Local() outputMap["time_limit"] = fmt.Sprintf("%d", v.(time.Time).Unix()) } else { outputMap["time_limit"] = "null"