ברירת המחדל של ה-locale הצרפתי משפיעה על היסט אזור הזמן!

סיכום מבוסס בינה מלאכותית

A bug has been reported where changing the default locale to French affects the timezone offset. hellekin noticed this issue, which causes dates to be displayed incorrectly. For example, [date=2020-12-04 time=10:00:00 timezone="Europe/Brussels"] is displayed as [date=2020-12-04 time=15:00:00 timezone="Europe/Brussels"] on French default locale sites, but not on English default locale sites. The issue seems to be specific to French, as it does not occur with Spanish. A fix is currently in review: https://github.com/discourse/discourse/pull/11408 eviltrout has confirmed the bug and is working on a solution.

Hello,

I noticed that when changing the default locale (e.g., from English to French), the dates are affected. I do not think they should, given that languages and timezones are not supposed to be linked – you can speak a language regardless of your location, and most colonizer languages are spoken across timezones.

E.g.,

given the same date entry on various instances using multisite (or not – but it also fails on the same multisite install), from the same computer with the same timezone configured for the user:

[date=2020-12-04 time=10:00:00 timezone="Europe/Brussels"] → [date=2020-12-04 time=15:00:00 timezone="Europe/Brussels"]

On English by default sites I get the expected time :

image
image

While on French by default instances the time offset is wrong:
image

Here’s what shows up here in Meta:
2020-12-04T09:00:00Z → 2020-12-04T14:00:00Z

I noticed the offset on earlier version but only made the link with default locale setting now, so I cannot report an affected version. I just tried on the stable: it’s affected with French but not with Spanish, so maybe it’s only a French thing – which would not be surprising, the French have this certainty of controlling spacetime. :wink:

cc @zogstrip

5 לייקים

This certainly was a peculiar bug. I reproduced it and have a fix in review:

7 לייקים