Bug 297913 - Date format "YYYY-MM-DD" is offered in the list, but not properly substituted
Summary: Date format "YYYY-MM-DD" is offered in the list, but not properly substituted
Status: RESOLVED UNMAINTAINED
Alias: None
Product: systemsettings
Classification: Applications
Component: kcm_formats (show other bugs)
Version: unspecified
Platform: Fedora RPMs Linux
: NOR minor
Target Milestone: ---
Assignee: Sebastian Kügler
URL:
Keywords:
: 316180 (view as bug list)
Depends on:
Blocks:
 
Reported: 2012-04-11 16:27 UTC by Tim Landscheidt
Modified: 2021-09-30 18:28 UTC (History)
6 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Formats (4.36 KB, text/plain)
2013-04-24 01:20 UTC, André Marcelo Alvarenga
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Tim Landscheidt 2012-04-11 16:27:33 UTC
User-Agent:       Mozilla/5.0 (X11; Linux i686) AppleWebKit/535.19 (KHTML, like Gecko) Chrome/18.0.1025.151 Safari/535.19
Build Identifier: 

With German locale, the "Kurzformat für Datum" list offers the formats "JJJJ-MM-TT", "TT.MM.JJJJ", "YYYY-MM-DD", "tT.mM.JJJJ" and "TT-MM-JJJJ".  Wanting an ISO 8601 format, I picked "YYYY-MM-DD".  This caused the current date to be displayed as "YYYY-04-DD".

  As "JJJJ-MM-TT" worked fine, "YYYY-MM-DD" should probably be simply removed from the list.

Reproducible: Always
Comment 1 André Marcelo Alvarenga 2013-04-12 02:59:21 UTC
In pt_BR language, we have 9 date formats in kcmlocale.po, but there are 10 in System Settings.

pt_BR kcmlocale.po:

"DD/MM/AAAA"
"DD-MM-AAAA"
"DD.MM.AAAA"
"dD/mM/AAAA"
"dD-mM-AAAA"
"dD.mM.AAAA"
"AAAA/MM/DD"
"AAAA-MM-DD"
"AAAA.MM.DD"

System Settings options:

DD-MM-AAAA
AAAA-MM-DD
YYYY-MM-DD      -> not in kcmlocale.po
DD/MM/AAAA
DD.MM.AAAA
dD/mM/AAAA
dD-mM-AAAA
dD.mM.AAAA
AAAA/MM/DD
AAAA-MM-DD
AAAA.MM.DD


If I choose YYYY-MM-DD today (2013-04-11), I get: YYYY-04-11

The format YYYY-MM-DD should not appear in the list.
Comment 2 Christoph Feck 2013-04-14 18:41:11 UTC
I guess YYYY-MM-DD is automatically added as a fallback for locales where the translated list does not offer this ISO format. Would it be possible to go through all languages, and check if they offer this format, so that the fallback can be removed?
Comment 3 André Marcelo Alvarenga 2013-04-24 01:20:53 UTC
Created attachment 79405 [details]
Formats

Christoph

I did not understand exactly what you need to know, but I created the attached file with information about all languages​​.

I think the possible fallback does not work if the string below is translated:

#: kcmlocale.cpp:2899
msgid "YYYY"
Comment 4 Justin Zobel 2020-11-19 06:10:33 UTC
(In reply to Christoph Feck from comment #2)
> I guess YYYY-MM-DD is automatically added as a fallback for locales where
> the translated list does not offer this ISO format. Would it be possible to
> go through all languages, and check if they offer this format, so that the
> fallback can be removed?

Christoph does the info in Comment 3 provide what you need to investigate this issue?
Comment 5 Christoph Feck 2020-11-19 11:07:02 UTC
Needs a developer familiar with the code and translations to investigate.
Comment 6 Nate Graham 2021-09-30 17:36:09 UTC
This isn't relevant any more in Plasma 5, sadly, because we moved to setting locales in the standard POSIX way with QLocale and there is no longer a setting to modify the date formats like this; now you choose a locale and use its built-in date formats. Sorry. If this annoys you, see Bug 394698.
Comment 7 Nate Graham 2021-09-30 18:28:17 UTC
*** Bug 316180 has been marked as a duplicate of this bug. ***