4 ms·
>something I wish browsers provided is a way to automatically format time elements based on user's preferences That'd quickly get awkward. I live in Norway whe
by eriknstr 10y ago
>something I wish browsers provided is a way to automatically format time elements based on user's preferences
That'd quickly get awkward. I live in Norway where the default format is DD/MM as opposed to MM/DD used in the US. This works fine for us in general, we know to expect the first one when we read something in Norwegian and the second one when we read something in English. If a computer formatted a date based on a default preference and considering that most websites probably don't specify the lang attribute, I think it'd get messy quickly. Also, different date formats will lead to different sentence structures making sense. For example you might say "ever since 9/11 something something" but you wouldn't naturally write "ever since 11. September 2001 something something" (you'd write "ever since the 11th of September 2001 something something") and likewise you also wouldn't naturally write "ever since 2001-09-11T08:46:40-0400 something something".
- scotth 10y agoYou already have that problem, whether or not you were aware of it. Many (most?) English speaking countries use DD/MM.
- dfox 10y agoI'm, for one, completely fine with the last example. On more serious note, such functionality is meant for formatting freestanding dates/times (eg. contents of table cell labeled "last modified") not dates in flowing text.