[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-core-devel
Subject:    Time formats / LC_TIME challenge for 4-digit year support
From:       Jaroslaw Staniek <staniek () kde ! org>
Date:       2018-12-03 13:47:56
Message-ID: CAOj7QQ3z+kgKyPZa3=YRA8euKa9Tvge0OwVEFJNSafc=685qWw () mail ! gmail ! com
[Download RAW message or body]

Hello,
The need: 4-digit year support for short date formats to avoid issues like
"10/11/12" dates.

This is just my initial conclusion from for the Qt date format issue:

https://bugreports.qt.io/browse/QTBUG-59382?focusedCommentId=436861&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-436861
 lt;dr: KF5 context: KCallendarSystem is part of the old APIs and the only
code I found related to LC_TIME.

So I've not found any common code KDE app can use instead of hard coding
some internal logic in order to support non-Plasma environments and/or
non-global settings. Basically even if an app implements locale name
selection in its private settings, "pure" Qt code is not enough to support
it in the discussed cases. Users may need alter date format globally (for
all apps) by hand using environment's settings, setting e.g. yyyy-mm-dd. Or
app developers may add private setting for that, one per app.

Opinions welcome.

-- 
regards, Jaroslaw Staniek

KDE:
> A world-wide network of software engineers, artists, writers, translators
> and facilitators committed to Free Software development - kde.org
KEXI:
> A visual database apps builder - kexi-project.org calligra.org/kexi
  twitter.com/kexi_project facebook.com/kexi.project t.me/kexi_project
Qt Certified Specialist:
> linkedin.com/in/jstaniek <http://www.linkedin.com/in/jstaniek>


[Attachment #3 (text/html)]

<div dir="ltr"><div dir="ltr"><div dir="ltr"><div class="gmail_default" \
style="font-family:monospace,monospace;font-size:small"><br \
clear="all"></div><div><div class="gmail_default" \
style="font-family:monospace,monospace;font-size:small">Hello,  </div><div \
class="gmail_default" style="font-family:monospace,monospace;font-size:small">The \
need:  4-digit year support for short date formats to avoid issues like \
&quot;10/11/12&quot; dates.</div><div class="gmail_default" \
style="font-family:monospace,monospace;font-size:small"><br></div><div \
class="gmail_default" style="font-family:monospace,monospace;font-size:small">This is \
just my initial conclusion from for the Qt date format issue:</div><div \
class="gmail_default" \
style="font-family:monospace,monospace;font-size:small"><br></div></div><div><div \
class="gmail_default" style="font-family:monospace,monospace;font-size:small"><a \
href="https://bugreports.qt.io/browse/QTBUG-59382?focusedCommentId=436861&amp;page=com \
.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-436861">https: \
//bugreports.qt.io/browse/QTBUG-59382?focusedCommentId=436861&amp;page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-436861</a></div><div \
class="gmail_default" \
style="font-family:monospace,monospace;font-size:small"></div><div \
class="gmail_default" style="font-family:monospace,monospace;font-size:small">lt;dr: \
KF5 context: KCallendarSystem is part of the old APIs and the only code I found \
related to LC_TIME.</div><div class="gmail_default" \
style="font-family:monospace,monospace;font-size:small"><br></div><div \
class="gmail_default" style="font-family:monospace,monospace;font-size:small">So \
I&#39;ve not found any common code KDE app can use instead of hard coding some \
internal logic in order to support non-Plasma environments and/or non-global \
settings. Basically even if an app implements locale name selection in its private \
settings, &quot;pure&quot; Qt code is not enough to support it in the discussed \
cases. Users may need alter date format globally (for all apps) by hand using \
environment&#39;s settings, setting e.g. yyyy-mm-dd. Or app developers may add \
private setting for that, one per app.<br></div><div class="gmail_default" \
style="font-family:monospace,monospace;font-size:small"><br></div><div \
class="gmail_default" \
style="font-family:monospace,monospace;font-size:small">Opinions welcome.</div><div \
class="gmail_default" \
style="font-family:monospace,monospace;font-size:small"><br></div><div \
class="gmail_default" style="font-family:monospace,monospace;font-size:small"><span \
style="font-family:Arial,Helvetica,sans-serif">--  </span><br></div></div><div \
dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div \
dir="ltr"><div><div dir="ltr"><div>regards, Jaroslaw Staniek<br><br>KDE:<br>: A \
world-wide network of software engineers, artists, writers, translators<br>: and \
facilitators committed to Free Software development - <a href="http://kde.org" \
target="_blank">kde.org</a><br>KEXI:<br>: A visual database apps builder -  <a \
href="http://kexi-project.org/" target="_blank">kexi-project.org</a>  <a \
href="http://calligra.org/kexi" target="_blank">calligra.org/kexi</a></div><div>    \
<a href="https://twitter.com/kexi_project" \
target="_blank">twitter.com/kexi_project</a>  <a \
href="https://facebook.com/kexi.project" \
target="_blank">facebook.com/kexi.project</a>  <a href="https://t.me/kexi_project" \
target="_blank">t.me/kexi_project</a><br>Qt Certified Specialist:<br>: <a \
href="http://www.linkedin.com/in/jstaniek" \
target="_blank">linkedin.com/in/jstaniek</a></div></div></div></div></div></div></div></div></div></div></div></div>




[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic