Browse Source

Hotfix for "Add time manually" (https://github.com/go-gitea/gitea/pull/2211#issuecomment-328780125) (#2499)

Signed-off-by: Jonas Franz <info@jonasfranz.software>
Jonas Franz 2 years ago
parent
commit
633de01cf7
1 changed files with 1 additions and 1 deletions
  1. 1 1
      routers/repo/issue_timetrack.go

+ 1 - 1
routers/repo/issue_timetrack.go

@@ -41,7 +41,7 @@ func AddTimeManually(c *context.Context, form auth.AddTimeManuallyForm) {
41 41
 		return
42 42
 	}
43 43
 
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 {
45 45
 		c.Handle(http.StatusInternalServerError, "AddTime", err)
46 46
 		return
47 47
 	}