Date format for type="date" input is incorrect
-
TimSchofield last edited by
I am using Opera 115.0.5322.68 on Linux Mint. If I go to the page https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/date#try_it the input element is showing 07/22/2018
The OS uses d/m/y format and Chrome and FireFox show the date correctly as 22/07/2018.
The only language installed on Opera is English (United Kingdom)
What is causing this, and how to fix?Thanks
Tim -
axolos last edited by
@TimSchofield Same here. Trying to find a fix for couple of months now. Without luck.
I am using Opera One(version: 115.0.5322.119) and Opera GX LVL6 (core: 114.0.5282.233) on Windows 10 - both having the same problem. -
TimSchofield last edited by
I am assuming that either:
- Nobody from Opera monitors this forum, or
- Nobody from Opera cares about this fairly basic failure to implement the HTML specification.
Both are sad, Opera is a good browser but this makes it unusable for my purposes.
Tim
-
axolos last edited by
I have found out that the format the date is displayed is governed by the language setting in Opera. After switching the language Opera is displayed in to English (United Kingdom) the format changed to: DD/MM/YYYY. It is still a bit confusing with the slash signs but it works.
-
TimSchofield last edited by
@axolos
Where have you set this. I have this under settings, but the date is still in mm/dd/YYYY format
-
axolos last edited by
It is that one.
You have to though select "Display Opera in this language" and Relaunch:
-
burnout426 Volunteer last edited by
@TimSchofield That option isn't available on Linux. You have to use the
--lang=code
command-line switch on Linux. You can do that in a terminal or modify the shortcut file for Opera to add it. See https://forums.opera.com/post/380391.Not sure if that will then help with your issue though.
-
TimSchofield last edited by
Thanks @burnout426 and @axolos
With a bit of playing around I discovered that the command line switch needed is --lang=en-GB as
--lang=en just gives US format for dates.Still seems very obscure for ordinary users to know, but thanks for your help.
Tim