Skip to content

Commit b505e26

Browse files
committed
fix build
1 parent 9cbef04 commit b505e26

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

models/issue_comment.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@ import (
1212
"strings"
1313

1414
"code.gitea.io/gitea/modules/git"
15+
"code.gitea.io/gitea/modules/log"
16+
"code.gitea.io/gitea/modules/markup"
1517
"code.gitea.io/gitea/modules/markup/markdown"
1618
"code.gitea.io/gitea/modules/setting"
1719
api "code.gitea.io/gitea/modules/structs"
18-
"code.gitea.io/gitea/modules/log"
19-
"code.gitea.io/gitea/modules/markup"
2020
"code.gitea.io/gitea/modules/timeutil"
2121

2222
"github.com/Unknwon/com"

modules/timeutil/language.go

+1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ var (
1414
langTimeFormats = map[string]string{
1515
"zh-CN": "2006年01月02日 15时04分05秒",
1616
"en-US": time.RFC1123,
17+
"lv-LV": "02.01.2006. 15:04:05",
1718
}
1819
)
1920

modules/timeutil/timestamp.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -66,14 +66,14 @@ func (ts TimeStamp) FormatInLocation(f string, loc *time.Location) string {
6666
}
6767

6868
// FormatLong formats as RFC1123Z
69-
/*func (ts TimeStamp) FormatLong() string {
69+
func (ts TimeStamp) FormatLong() string {
7070
return ts.Format(time.RFC1123Z)
7171
}
7272

7373
// FormatShort formats as short
7474
func (ts TimeStamp) FormatShort() string {
7575
return ts.Format("Jan 02, 2006")
76-
}*/
76+
}
7777

7878
// IsZero is zero time
7979
func (ts TimeStamp) IsZero() bool {

0 commit comments

Comments
 (0)