Monorepo for Tangled
0

Configure Feed

Select the types of activity you want to include in your feed.

appview/pages: format unix epoch explicitly

purely decorative change to format timestamps equal to the unix epoch
(1970-01-01T00:00:00Z) as "at the beginning of time"

authored by

june and committed by
Tangled
(Jul 1, 2026, 5:35 PM +0300) 3fcce030 551034f6

+3
+3
appview/pages/funcmap.go
··· 223 223 "plural": english.Plural, 224 224 "relTimeFmt": humanize.Time, 225 225 "shortRelTimeFmt": func(t time.Time) string { 226 + if t.Unix() == 0 { 227 + return "at the beginning of time" 228 + } 226 229 return humanize.CustomRelTime(t, time.Now(), "", "", []humanize.RelTimeMagnitude{ 227 230 {D: time.Second, Format: "now", DivBy: time.Second}, 228 231 {D: 2 * time.Second, Format: "1s %s", DivBy: 1},