Skip to content

Commit

Permalink
fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
lunny committed Aug 15, 2019
1 parent 9cbef04 commit b505e26
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions models/issue_comment.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@ import (
"strings"

"code.gitea.io/gitea/modules/git"
"code.gitea.io/gitea/modules/log"
"code.gitea.io/gitea/modules/markup"
"code.gitea.io/gitea/modules/markup/markdown"
"code.gitea.io/gitea/modules/setting"
api "code.gitea.io/gitea/modules/structs"
"code.gitea.io/gitea/modules/log"
"code.gitea.io/gitea/modules/markup"
"code.gitea.io/gitea/modules/timeutil"

"github.com/Unknwon/com"
Expand Down
1 change: 1 addition & 0 deletions modules/timeutil/language.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ var (
langTimeFormats = map[string]string{
"zh-CN": "2006年01月02日 15时04分05秒",
"en-US": time.RFC1123,
"lv-LV": "02.01.2006. 15:04:05",
}
)

Expand Down
4 changes: 2 additions & 2 deletions modules/timeutil/timestamp.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,14 +66,14 @@ func (ts TimeStamp) FormatInLocation(f string, loc *time.Location) string {
}

// FormatLong formats as RFC1123Z
/*func (ts TimeStamp) FormatLong() string {
func (ts TimeStamp) FormatLong() string {
return ts.Format(time.RFC1123Z)
}

// FormatShort formats as short
func (ts TimeStamp) FormatShort() string {
return ts.Format("Jan 02, 2006")
}*/
}

// IsZero is zero time
func (ts TimeStamp) IsZero() bool {
Expand Down

0 comments on commit b505e26

Please sign in to comment.