aboutsummaryrefslogtreecommitdiffstats
path: root/modules
diff options
context:
space:
mode:
authorYarden Shoham <git@yardenshoham.com>2023-04-26 09:52:50 +0300
committerGitHub <noreply@github.com>2023-04-26 02:52:50 -0400
commiteea23bbc8ebb7589b4291d23b37106a32d81a834 (patch)
treecd4a4d5f1daa48e975d0dcb83594b51731fea6b4 /modules
parentfb37eefa282543fd8ce63c361cd4cf0dfac9943c (diff)
downloadgitea-eea23bbc8ebb7589b4291d23b37106a32d81a834.tar.gz
gitea-eea23bbc8ebb7589b4291d23b37106a32d81a834.zip
Remove unnecessary helper function `DateFmtLong` (#24343)
After #24317 this function is only used in one place where it is not needed. I confirmed the timestamp still renders correctly Signed-off-by: Yarden Shoham <git@yardenshoham.com>
Diffstat (limited to 'modules')
-rw-r--r--modules/templates/helper.go3
1 files changed, 0 insertions, 3 deletions
diff --git a/modules/templates/helper.go b/modules/templates/helper.go
index b7bef20560..a290d38979 100644
--- a/modules/templates/helper.go
+++ b/modules/templates/helper.go
@@ -141,9 +141,6 @@ func NewFuncMap() []template.FuncMap {
"TimeSinceUnix": timeutil.TimeSinceUnix,
"DateTime": timeutil.DateTime,
"Sec2Time": util.SecToTime,
- "DateFmtLong": func(t time.Time) string {
- return t.Format(time.RFC3339)
- },
"LoadTimes": func(startTime time.Time) string {
return fmt.Sprint(time.Since(startTime).Nanoseconds()/1e6) + "ms"
},