Skip to content

Commit

Permalink
Mark the planned end date read from the database as a local timestamp
Browse files Browse the repository at this point in the history
  • Loading branch information
ianmcorvidae committed Sep 18, 2024
1 parent 97fce0b commit 91c5cf5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions internal/internal.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 91c5cf5

Please sign in to comment.