Files
gitea/modules/setting
silverwind 7492251e7e Fix relative-time RangeError (#37021)
`navigator.language` can be `undefined` in headless browsers (e.g.
Playwright Firefox), causing `RangeError: invalid language tag:
"undefined"` in `Intl.DateTimeFormat` within the `relative-time` web
component.

Also adds an e2e test that verifies `relative-time` renders correctly
and a shared `assertNoJsError` helper.

Bug is als present in https://github.com/github/relative-time-element
but (incorrectly) masked there.

Fixes: https://github.com/go-gitea/gitea/issues/25324

---------

Co-authored-by: Claude (Opus 4.6) <noreply@anthropic.com>
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2026-03-28 13:10:51 +00:00
..
2026-02-28 11:23:20 -08:00
2026-02-22 08:01:43 +01:00
2023-12-19 09:29:05 +00:00
2023-07-04 18:36:08 +00:00
2025-06-03 01:26:19 +00:00
2025-09-13 18:01:00 +00:00
2025-10-23 08:35:48 +00:00
2025-03-31 01:53:48 -04:00
2023-10-10 18:47:49 +08:00
2023-02-20 16:18:26 -06:00