Store and use seconds for timeline time comments ()

this will allow us to fully localize it later

PS: we can not migrate back as the old value was a one-way conversion


prepare for  

---
*Sponsored by Kithara Software GmbH*
This commit is contained in:
6543
2023-06-23 14:12:39 +02:00
committed by GitHub
parent a954c93a68
commit b0215c40cd
6 changed files with 67 additions and 18 deletions
models/issues
modules/util
routers/web/repo
services/convert
templates/repo/issue/view_content

@ -35,7 +35,7 @@ func TestAddTime(t *testing.T) {
assert.Equal(t, int64(3661), tt.Time)
comment := unittest.AssertExistsAndLoadBean(t, &issues_model.Comment{Type: issues_model.CommentTypeAddTimeManual, PosterID: 3, IssueID: 1})
assert.Equal(t, "1 hour 1 minute", comment.Content)
assert.Equal(t, "|3661", comment.Content)
}
func TestGetTrackedTimes(t *testing.T) {