From 633de01cf74125a692a59e89812c6ffffc98bb1f Mon Sep 17 00:00:00 2001 From: Jonas Franz Date: Wed, 13 Sep 2017 21:02:04 +0200 Subject: [PATCH] Hotfix for "Add time manually" (https://github.com/go-gitea/gitea/pull/2211#issuecomment-328780125) (#2499) Signed-off-by: Jonas Franz --- routers/repo/issue_timetrack.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/routers/repo/issue_timetrack.go b/routers/repo/issue_timetrack.go index e01cd48a6..4d77ca3ce 100644 --- a/routers/repo/issue_timetrack.go +++ b/routers/repo/issue_timetrack.go @@ -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 }