diff options
Diffstat (limited to 'modules/base/tool.go')
-rw-r--r-- | modules/base/tool.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/modules/base/tool.go b/modules/base/tool.go index 2435ebe06f..16759f21f6 100644 --- a/modules/base/tool.go +++ b/modules/base/tool.go @@ -321,6 +321,10 @@ func timeSince(then time.Time, lang string) string { } } +func RawTimeSince(t time.Time, lang string) string { + return timeSince(t, lang) +} + // TimeSince calculates the time interval and generate user-friendly string. func TimeSince(t time.Time, lang string) template.HTML { return template.HTML(fmt.Sprintf(`<span class="time-since" title="%s">%s</span>`, t.Format(setting.TimeFormat), timeSince(t, lang))) |