News for hackers. Stuff that matters.
Re:Date/Time Inputs Enabled on Firefox Nightly by Yaggo on Monday October 23, 2017 @03:47AM (#15531451)
Nice, but why <input type="date"> expects U.S. format 'mm/dd/yyyy' instead of native format used in my system?

If it falls back to default format, at least the default could little bit more universal/stanard, e.g. 'yyyy-mm-dd'.

Edit: Even after switching my preferred language from English to Finnish in browser settings, the format stays 'mm/dd/yyyy'. I'm using Finnish region in my OS settings as well.

Re:Date/Time Inputs Enabled on Firefox Nightly by fnord123 on Monday October 23, 2017 @04:11AM (#15531563)
Many english speakers use en_US by default since it's the thing that breaks the least, so using the native format of the system is not useful. It should use ISO-8601 (yyyy-mm-dd) unless someone explicitly sets it in about:preferences.
Re:Date/Time Inputs Enabled on Firefox Nightly by Yaggo on Monday October 23, 2017 @04:31AM (#15531634)
> Many english speakers use en_US by default since it's the thing that breaks the least, so using the native format of the system is not useful.

Sorry, I'm not following you. Every application should use the format defined in OS settings, that's the point of the system setting, why should browser be an exception?

Re:Date/Time Inputs Enabled on Firefox Nightly by DiabloD3 on Monday October 23, 2017 @05:21AM (#15531822)
Most people intentionally set their locale wrong, to en_US, because a lot of apps simply do not have actual locale support, but try to do something when presented with a non-en_US locale.
Re:Date/Time Inputs Enabled on Firefox Nightly by NetMonkey on Monday October 23, 2017 @05:28AM (#15531848)
I know many like me, who also just prefers the application language to be in English. From decades of using English I have no idea what many terms are in my native language, native terms are much harder to google, and many applications are also poorly translated. But that doesn't mean I want everything in English, especially not date/time formats.
Re:Date/Time Inputs Enabled on Firefox Nightly by viraptor on Monday October 23, 2017 @06:05AM (#15531985)
Language and locale (how you want your date or numbers formatted) are two different things. You can set them separately.
Re:Date/Time Inputs Enabled on Firefox Nightly by Piskvorrr on Monday October 23, 2017 @06:57AM (#15532189)
I can set them, all right. Somebody else then needs to read them, though...and has to take care not to assume that LANG===LC_TIME===LC_DATE. Sadly, I do not see that happening; in most cases, the apps are picking one locale setting, seemingly at random, and using it for all the other locale settings.
Re:Date/Time Inputs Enabled on Firefox Nightly by beejiu on Monday October 23, 2017 @06:43AM (#15532131)
I cannot remember an app that did not support dd/mm/yyyy format. It is the first thing a non-US English speaker will complain about.
Re:Date/Time Inputs Enabled on Firefox Nightly by fnord123 on Monday October 23, 2017 @07:31AM (#15532350)
Last time I used Peoplesoft it had everything in American date format.
Re:Date/Time Inputs Enabled on Firefox Nightly by Piskvorrr on Monday October 23, 2017 @06:58AM (#15532196)
dd/mm/yyyy is indeed what I'll complain about: that's as unclear as possible. Did the author mean dd.mm.yyyy or mm/dd/yyyy?
Re:Date/Time Inputs Enabled on Firefox Nightly by cyphar on Monday October 23, 2017 @07:51AM (#15532433)
DD/MM/YYYY is more widely used than the US-only MM/DD/YYYY. Ultimately, ISO 8061 (YYYY-MM-DD) is the only really usable one.
Re:Date/Time Inputs Enabled on Firefox Nightly by Piskvorrr on Wednesday October 25, 2017 @06:22AM (#15548887)
Nope, you're thinking of DD.MM.YYYY - using the USian separators with the European date ordering is a recipe for trouble. Agree on the ISO form.
Re:Date/Time Inputs Enabled on Firefox Nightly by cyphar on Wednesday October 25, 2017 @08:05AM (#15549346)
We use DD/MM/YYYY in Australia. I can definitely agree that it adds to the confusion. ;)
Re:Date/Time Inputs Enabled on Firefox Nightly by madisfun on Monday October 23, 2017 @07:57AM (#15532468)
That's the reason to use en_GB locale instead. European date and time formats and English language for the UI. Rarely if ever saw anything broken.
Re:Date/Time Inputs Enabled on Firefox Nightly by fnord123 on Monday October 23, 2017 @11:00AM (#15533650)
Yes I try to do that but I sometimes have used (accidentally) en_US in the past since I use ANSI International keyboard layout but GB locale settings.
Re:Date/Time Inputs Enabled on Firefox Nightly by babuskov on Monday October 23, 2017 @04:34AM (#15531644)
Agreed. ISO-8601 is the way to go.
Re:Date/Time Inputs Enabled on Firefox Nightly by _Codemonkeyism on Monday October 23, 2017 @04:57AM (#15531722)
Didn't you know? There does not exist a world outside the US. We're all just illusions and bots.
Re:Date/Time Inputs Enabled on Firefox Nightly by foepys on Monday October 23, 2017 @04:05AM (#15531540)
In the German localization it's correctly displayed as 'dd.mm.yyyy'. Other formats are possible but not yet enabled for every language, it seems.
Re:Date/Time Inputs Enabled on Firefox Nightly by Yaggo on Monday October 23, 2017 @04:27AM (#15531622)
Weird, given that ´new Intl.DateTimeFormat('fi-FI').format(new Date)´ in console properly outputs dd.mm.yyyy, so the locale data for Finnish should be there.
Re:Date/Time Inputs Enabled on Firefox Nightly by Manishearth on Monday October 23, 2017 @05:23AM (#15531829)
It uses the locale of your Firefox install (which you can select when you download the browser). This isn't configurable within an install (yet).
Re:Date/Time Inputs Enabled on Firefox Nightly by petriw on Monday October 23, 2017 @06:51AM (#15532166)
I hope the plan is to read the configured date format on the system like most software out there? This really shouldn't need to be manually configured.
Re:Date/Time Inputs Enabled on Firefox Nightly by jhasse on Monday October 23, 2017 @08:33AM (#15532651)
Works on Android though (or does the Play Stpre download a localized version for me?).
Re:Date/Time Inputs Enabled on Firefox Nightly by Manishearth on Monday October 23, 2017 @01:31PM (#15535016)
IIRC it does