diff --git a/modules/timeutil/since.go b/modules/timeutil/since.go
index bdde54c61..e6a2519d2 100644
--- a/modules/timeutil/since.go
+++ b/modules/timeutil/since.go
@@ -114,11 +114,25 @@ func timeSincePro(then, now time.Time, lang translation.Locale) string {
return strings.TrimPrefix(timeStr, ", ")
}
+func timeSinceUnix(then, now time.Time, lang translation.Locale) template.HTML {
+ friendlyText := then.Format("2006-01-02 15:04:05 +07:00")
+
+ // document: https://github.com/github/relative-time-element
+ attrs := `tense="past"`
+ isFuture := now.Before(then)
+ if isFuture {
+ attrs = `tense="future"`
+ }
+
+ // declare data-tooltip-content attribute to switch from "title" tooltip to "tippy" tooltip
+ htm := fmt.Sprintf(`