ср, 21 серп. 2019 о 05:09 Udvarias Ur <udvari...@gmail.com> пише:

> Dear List,
>
> How can I change the Krusader time display to a 24 hour format?
>
>
> --------------------------------------------------------------------------------------------------------------
>
> The system forces me to use the Canada (English) region, which is pretty
> out to lunch because…
>
> The developers of Linux OS time formatting system seem to have assumed
> that every country / region uses ONLY ONE time format. This may be
> correct in most parts of the world. It is NOT TRUE in Canada! (In fact
> scientist, all over the world, use the 24 hour format and a YYYY-MM-DD
> date format regardless of regional norms.)
>
> 1. Canada is a nation of immigrants, the huge majority of whom used the
> 24 hour time format before they arrived, and continue to use once they
> are here.
>
> 2. Canada shares a very long border with the US. (To the best of my
> knowledge one of the few countries in the world that still uses the 12
> hour time format, with the exception of scientists.) As a result, we
> here in (English) Canada, are a bit schizophrenic. Among ourselves, for
> the most part, we use the 24 hour time format. When dealing with the US
> we use the 12 hour time format. (That is especially true here in Québec.)
>
> Another example of this is our calendars which have both Canadian and US
> holidays on them.
>
Hi,

Regretfully, there is no way to change the formatting system globally now
[1].

On the other hand, it can be relatively easy to add the formatting control
to Krusader itself [2, 3]. You can

1. Edit the source code (just add the format you need directly into the
listmodel.cpp), recompile, install, and use it right now (that is very easy
and instructive [4], just ask this list if you need some additional
instructions).
For example, replace line 528 in listmodel.cpp
 return QLocale().toString(dateTime, QLocale::ShortFormat);
with
 return QLocale().toString(dateTime, "yyyy-MM-ddTHH:mm:ss");
Format data can be stolen from [5].
2. Implement an option for this on the "Panel" page of Konfigurator and
send a review request through Phabricator [6]. Not that easy but manageable
for anybody with very basic programming skills. Everybody with the same
problem will be grateful to you.
3. Wait for someone to implement this feature. Easy but boring. ;)

Hope this helps.

Best regards,
Yuri

[1] https://bugs.kde.org/show_bug.cgi?id=354269
[2] https://doc.qt.io/qt-5/qdatetime.html#toString
[3]
https://cgit.kde.org/krusader.git/tree/krusader/Panel/PanelView/listmodel.cpp#n528
[4] https://cgit.kde.org/krusader.git/tree/INSTALL
[5] https://doc.qt.io/qt-5/qdatetime.html#fromString
[6] https://phabricator.kde.org/project/view/79/

-- 
You received this message because you are subscribed to the Google Groups 
"krusader-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to krusader-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/krusader-users/CAGqPwMS9o%2BG3TRL4K6YLoeJCzOKwnVPabbQ57OEf0-GmpsTpdA%40mail.gmail.com.

Reply via email to