]> source.dussan.org Git - gitea.git/commitdiff
Hotfix for "Add time manually" (https://github.com/go-gitea/gitea/pull/2211#issuecomm...
authorJonas Franz <info@jonasfranz.software>
Wed, 13 Sep 2017 19:02:04 +0000 (21:02 +0200)
committerThomas Boerger <thomas@webhippie.de>
Wed, 13 Sep 2017 19:02:04 +0000 (21:02 +0200)
Signed-off-by: Jonas Franz <info@jonasfranz.software>
routers/repo/issue_timetrack.go

index e01cd48a66a7f6209f4de72e27258cdbf403d61e..4d77ca3cea21014b9b0f5d18074d53e84cc999f2 100644 (file)
@@ -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
        }