Issue Description
The admin WebUI always shows dates and times in US English format, regardless of the browser language and the account’s locale setting.
Expected Behavior
Dates and times follow the browser’s preferred language (navigator.language) or the account’s locale. With Norwegian Bokmål: “3. nov. 2026, 17:46:51”
Actual Behavior
Dates are always shown in en-US format, e.g. Management > Accounts > “Created At” shows “Nov 3, 2026, 5:46:51 PM”. The time zone is correct (17:46 local time), only the format is wrong.
Reproduction Steps
- Stalwart v1.0.2 (Docker, stalwartlabs/stalwart:v1.0.2), single node, RocksDB.
- Set Chrome preferred languages to Norwegian Bokmål (nb) first, English (US) further down.
- Set the account’s locale to “nb-NO” and timeZone to “Europe/Oslo” (x:Account/set via JMAP).
- Log out and back in to the WebUI.
- Open Management > Accounts and look at the “Created At” column.
Relevant Log Output
None – no errors in the server log; this is a display/formatting issue in the WebUI.
Stalwart Version
v1.x
Installation Method
Docker
Database Backend
RocksDB
Blob Storage
RocksDB
Search Engine
Internal
Directory Backend
Internal
Additional Context
Suggestion: format dates with Intl.DateTimeFormat using the account locale (if set) or the browser locale, instead of a fixed “en-US”.
Related: How can I set a different language for the admin panel? (WebUI translations are planned). This report is only about date/time formatting, which could follow the browser locale even while the UI text itself is English-only.
I have reviewed the documentation and FAQ and confirm that my issue is NOT addressed there.
on
I have searched this support forum (open and closed topics) and confirm this is not a duplicate.
on
I understand that topics in this category are triaged by a bot first but a human reply will follow up. If I’d prefer a human-only reply, I’ll add the no-ai tag to my topic.
on
Your report matches what the WebUI source does. The date locale isn’t taken straight from the browser.
I checked src/lib/format.ts in the WebUI source. The format locale comes from the WebUI’s active i18next language, which is English. getFormatLocale() does this:
- It takes the active UI language.
- It looks through
navigator.languages for a tag with the same base language, such as en-GB if the UI language is en.
- It uses that tag, or the plain UI language if there’s no match.
Your Norwegian Bokmål browser preference never gets used. The UI language is en, and the only English entry in your list is English (US), so dates come out as en-US. The only exception is the cimode pseudo-language. In that case it uses navigator.languages[0].
The WebUI also doesn’t seem to read the account’s locale field for formatting. I found nothing in the formatting code that uses it. The time zone is correct because it’s handled separately.
So what you suggest, using the account locale or the browser’s first language, isn’t how it works today. Your report is a reasonable feature request. A community or staff member will follow up on whether it will change.
I didn’t find any setting that overrides this in the docs or source I checked. This applies to v1.0.x.
This is an automated reply from the Stalwart Help Bot. Other community members may follow up if this answer is incomplete or wrong.
Hi Ray,
This was a bug in the WebUI. It picked the date and number locale from the active UI translation, and since only English ships right now, every language fell back to English formatting even with nb-NO set on the account and Norwegian first in Chrome.
It’s fixed now. Formatting no longer depends on translations: the WebUI uses the account locale when one is set, and otherwise the browser’s first preferred language. An account left at the default en-US counts as “not set”, so it follows the browser too. With your setup you’ll get “3. nov. 2026, 17:46:51” style dates, and numbers follow the same locale. The UI text itself stays English until the translations from this topic land.
The fix will be in the next weekly Stalwart release.