summaryrefslogtreecommitdiffstats
path: root/routers
diff options
context:
space:
mode:
authorJonas Franz <info@jonasfranz.software>2017-09-13 21:02:04 +0200
committerThomas Boerger <thomas@webhippie.de>2017-09-13 21:02:04 +0200
commit633de01cf74125a692a59e89812c6ffffc98bb1f (patch)
treeacdc1b5f50cf8a650d6bae662ba7997225688cb8 /routers
parent35b473d8d30e3ebd36789b66f06c3e77c666cb94 (diff)
downloadgitea-633de01cf74125a692a59e89812c6ffffc98bb1f.tar.gz
gitea-633de01cf74125a692a59e89812c6ffffc98bb1f.zip
Hotfix for "Add time manually" (https://github.com/go-gitea/gitea/pull/2211#issuecomment-328780125) (#2499)
Signed-off-by: Jonas Franz <info@jonasfranz.software>
Diffstat (limited to 'routers')
-rw-r--r--routers/repo/issue_timetrack.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/routers/repo/issue_timetrack.go b/routers/repo/issue_timetrack.go
index e01cd48a66..4d77ca3cea 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
}