Skip to content

Commit

Permalink
Hotfix for "Add time manually" (#2211 (comment)) (#2499)
Browse files Browse the repository at this point in the history
Signed-off-by: Jonas Franz <[email protected]>
  • Loading branch information
jonasfranz authored and tboerger committed Sep 13, 2017
1 parent 35b473d commit 633de01
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion routers/repo/issue_timetrack.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ func AddTimeManually(c *context.Context, form auth.AddTimeManuallyForm) {
return
}

if _, err := models.AddTime(c.User, issue, int64(total)); err != nil {
if _, err := models.AddTime(c.User, issue, int64(total.Seconds())); err != nil {
c.Handle(http.StatusInternalServerError, "AddTime", err)
return
}
Expand Down

0 comments on commit 633de01

Please sign in to comment.