Skip to content

Commit 09f817c

Browse files
committed
Hotfix for "Add time manually" (go-gitea#2211 (comment))
Signed-off-by: Jonas Franz <[email protected]>
1 parent 3e89e89 commit 09f817c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

routers/repo/issue_timetrack.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ func AddTimeManually(c *context.Context, form auth.AddTimeManuallyForm) {
4141
return
4242
}
4343

44-
if _, err := models.AddTime(c.User, issue, int64(total)); err != nil {
44+
if _, err := models.AddTime(c.User, issue, int64(total.Seconds())); err != nil {
4545
c.Handle(http.StatusInternalServerError, "AddTime", err)
4646
return
4747
}

0 commit comments

Comments
 (0)