mirror of
https://gitcode.com/gitea/gitea.git
synced 2025-07-26 11:02:44 +08:00
Store and use seconds for timeline time comments (#25392)
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 #25213 --- *Sponsored by Kithara Software GmbH*
This commit is contained in:
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) {
|
||||
|
Reference in New Issue
Block a user