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 0b3ff2a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/internal.go
Original file line number Diff line number Diff line change
Expand Up @@ -1000,7 +1000,7 @@ func (i *Internal) getTimeLimit(ctx context.Context, userID, id string) (map[str

outputMap := map[string]string{}
if timeLimit.Valid {
v, err := timeLimit.Value()
v, err := timeLimit.Value().Local()

Check failure on line 1003 in internal/internal.go

View workflow job for this annotation

GitHub Actions / call-workflow-passing-data / lint

multiple-value timeLimit.Value() (value of type (driver.Value, error)) in single-value context) (typecheck)

Check failure on line 1003 in internal/internal.go

View workflow job for this annotation

GitHub Actions / call-workflow-passing-data / lint

multiple-value timeLimit.Value() (value of type (driver.Value, error)) in single-value context (typecheck)
if err != nil {
return nil, errors.Wrapf(err, "error getting time limit for user %s on analysis %s", userID, id)
}
Expand Down

0 comments on commit 0b3ff2a

Please sign in to comment.