DevForum Swedish localization has DateTime formatting errors

The Problem
When using the Swedish localization, specific keys in a DateTime object fail to format due to localization differences.

Year → År
Month → Månad
Day → Dag

There might be a similar problem for other languages with the same root cause.

However, hovering over the time object reveals the actual underlying date.
image

Repro steps

  1. Change your localization to Swedish.
    ^ This could either be in Windows, Chrome, or the DevForum; I haven’t exactly pinpointed which one.
  2. Visit a DevForum user’s profile, expand the details.
  3. Observe as the year is displayed as [month] [day], ÅÅÅÅ

When it started happening
I believe I’ve been observing this issue ever since I joined the Developer Forum, so I’d say around September 2nd, 2023. Of course, this issue is a localization issue, so it might’ve persisted long before I joined.

1 Like

Yeah this is a bug with Discourse. It was also recently reported around the same time here

As we continue to upgrade Discourse, this bug should (eventually) be fixed :folded_hands:

1 Like