gitforge/web_src
Burak Emir de6a74832b fix: honor format="duration" on <relative-time> (#12415)
The admin system status template wraps the server start time in
<relative-time format="duration"> intending to display elapsed time as
a bare duration ("two months"), but the custom element ignored the
format attribute and always rendered "two months ago". Implement the
duration mode using Intl.NumberFormat with style: "unit" so the same
calendar-aware diffing produces a localized, suffix-free string.

Resolves https://codeberg.org/forgejo/forgejo/issues/12078

Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/12415
Reviewed-by: Gusted <gusted@noreply.codeberg.org>
2026-07-10 18:43:12 +02:00
..
css feat: granular settings for watched repo units (#10927) 2026-07-09 19:51:10 +02:00
fomantic
js fix: honor format="duration" on <relative-time> (#12415) 2026-07-10 18:43:12 +02:00
svg