Skip to content

Commit 633de01

Browse files
jonasfranztboerger
authored andcommitted
Hotfix for "Add time manually" (#2211 (comment)) (#2499)
Signed-off-by: Jonas Franz <[email protected]>
1 parent 35b473d commit 633de01

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)