Remove the time-since class (#29826)

It serves no purpose.

---------

Signed-off-by: Yarden Shoham <git@yardenshoham.com>
Co-authored-by: Giteabot <teabot@gitea.io>
(cherry picked from commit 3f1e4896b6d71dc061e23fa2dcac4c1b7d412540)
This commit is contained in:
Yarden Shoham 2024-03-15 23:57:53 +02:00 committed by Earl Warren
parent b97b1d03cf
commit 24305e4d09
No known key found for this signature in database
GPG key ID: 0579CB2928A78A00
4 changed files with 6 additions and 4 deletions

View file

@ -166,7 +166,7 @@ func testViewRepo(t *testing.T) {
})
// convert "2017-06-14 21:54:21 +0800" to "Wed, 14 Jun 2017 13:54:21 UTC"
htmlTimeString, _ := s.Find("relative-time.time-since").Attr("datetime")
htmlTimeString, _ := s.Find("relative-time").Attr("datetime")
htmlTime, _ := time.Parse(time.RFC3339, htmlTimeString)
f.commitTime = htmlTime.In(time.Local).Format(time.RFC1123)
items = append(items, f)