<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<br>
<br>
<div class="moz-cite-prefix">Op 10-08-2020 om 22:02 schreef Jack:<br>
</div>
<blockquote type="cite"
cite="mid:ZRKK4DRP.3D7UOMOH.4EBQPHDP@SNBMQYGG.OEJILIV7.NJYRC37O">On
2020.08.10 15:18, Koos Pol wrote:
<br>
<blockquote type="cite">Hi,
<br>
<br>
I'm stuck with dates. For my KDE desktop I'm using my proper
locale
<br>
(nl_NL) with a short date (DD-MM-YY).
<br>
With this format I can't enter dates 1990 and earlier. KMyMoney
wil take
<br>
that as 2090.
<br>
I've looked at other locales having YYYY-MM-DD. But obviously
that gives
<br>
a host of other issues.
<br>
<br>
Unfortunately KDE doesn't provide a personalized date setting.
So I'm
<br>
stuck with what I get.
<br>
<br>
What would be the next course of action?
<br>
<br>
1. Is there a work around available? E.g. start KMM from the
command
<br>
line with specific locale settings?
<br>
2. Raise a feature request on KMM to provide date formats
independent
<br>
of KDE? Which would not be unreasonable. There is a fair
case to
<br>
have your financial dates not be bothered with your
environment.
<br>
3. Raise a "change request" on KMM to re-assess date
interpretation.
<br>
4. Raise a feature request on KDE to provide personalized date
formats?
<br>
<br>
I'm hoping for (1), but leaning towards (4). Opinions welcome!
<br>
</blockquote>
It's worth opening a wishlist bug, just so this isn't forgotten in
case this thread doesn't lead to a definitive action. You can
list several possible actions there, so it doesn't limit you to
only one choice.
<br>
<br>
Have you looked at the KDE SystemSettings tool - under
Personalization/Regional Settings/Formats, if you check Detailed
Settings, you can then hunt through all the possible locales just
for the Time setting. You might be ablet o find one with a long
format similar enough to nl_NL, but a short format with four digit
year.
<br>
<br>
Another possibility is to create a new locale, which you copy from
nl_NL and then modify the short format time setting. I think I
tried this once (for a similar reason, if I remember) and although
I don't think I actually succeeded, it might be worth a new
attempt. It might be possible to combine these two - create a new
locale with your desired short date format, and then just use that
single format as a change to the rest of nl_NL.
<br>
<br>
Jack
<br>
</blockquote>
<br>
Good morning,<br>
<br>
I've eventually settled for <tt>LC_TIME=af_ZA</tt> (South African)
as an environment variable for KMyMoney. It gives me proper short
ISO (YYYY-MM-DD) with month names in the date picker which are
similar enough to Dutch. It also doesn't interfere with the rest of
my desktop settings. For as far as convenience goes, LC_TIME is
probably your best bet.<br>
<br>
Regarding creating a specific locale for this: that's not going to
happen. Read here[*] for why.<br>
<br>
It does strengthen my opinion that KMM should be able to display the
numerical bits of a date in a specific format. For financial
reporting you simply can't have ambiguity (11/03/09) or restrictions
(90=2090, 1990 is not possible). Having that
predetermined/restricted by Qt and/or you personal locale settings
is not sound.<br>
<br>
Thanks for everyone's help!<br>
Koos<br>
<br>
[*]
<a class="moz-txt-link-freetext" href="https://unix.stackexchange.com/questions/410844/how-to-hack-and-modify-a-predefined-date-time-format-of-kde-5-that-comes-with-de">https://unix.stackexchange.com/questions/410844/how-to-hack-and-modify-a-predefined-date-time-format-of-kde-5-that-comes-with-de</a><br>
<br>
</body>
</html>