aboutsummaryrefslogtreecommitdiffstats
path: root/modules/convert/issue.go
diff options
context:
space:
mode:
Diffstat (limited to 'modules/convert/issue.go')
-rw-r--r--modules/convert/issue.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/convert/issue.go b/modules/convert/issue.go
index 36446da2d1..b773e78a6b 100644
--- a/modules/convert/issue.go
+++ b/modules/convert/issue.go
@@ -147,6 +147,8 @@ func ToStopWatches(sws []*models.Stopwatch) (api.StopWatches, error) {
result = append(result, api.StopWatch{
Created: sw.CreatedUnix.AsTime(),
+ Seconds: sw.Seconds(),
+ Duration: sw.Duration(),
IssueIndex: issue.Index,
IssueTitle: issue.Title,
RepoOwnerName: repo.OwnerName,