Bug 359191 - aKregator does not honor LC_TIME / date and time in wrong format
Summary: aKregator does not honor LC_TIME / date and time in wrong format
Status: REPORTED
Alias: None
Product: akregator
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Ubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-02-09 16:44 UTC by Arek Guzinski
Modified: 2019-04-28 18:32 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Screenshot (750.21 KB, image/png)
2016-02-09 17:46 UTC, Arek Guzinski
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Arek Guzinski 2016-02-09 16:44:12 UTC
Version: 5.0.3

the date and time are displayed in US format (mm/dd/yy hh:mm AM/PM) instead of german format (dd.mm.yy HH:mm).

output of $ env | ack-grep '^L[AC]' | sort

LANG=en_US.UTF-8
LANGUAGE=en_US.UTF-8
LC_ADDRESS=de_DE.UTF-8
LC_IDENTIFICATION=de_DE.UTF-8
LC_MEASUREMENT=de_DE.UTF-8
LC_MONETARY=de_DE.UTF-8
LC_NAME=de_DE.UTF-8
LC_NUMERIC=C
LC_PAPER=de_DE.UTF-8
LC_TELEPHONE=de_DE.UTF-8
LC_TIME=de_DE.UTF-8



Reproducible: Always




date and time are correctly displayed in other applications ( tested with dolphin(15.08.03), konqueror (4.14.13), kmail(5.0.3) )
Comment 1 Laurent Montel 2016-02-09 17:23:27 UTC
screenshot please
Comment 2 Arek Guzinski 2016-02-09 17:46:03 UTC
Created attachment 97111 [details]
Screenshot
Comment 3 Laurent Montel 2016-02-10 05:58:09 UTC
it used code for translated date: => for sure it will work
it's not a bug in akregator.
I saw in your screenshot that all is in english so it's the problem.
           return KLocale::global()->formatDateTime(article.pubDate(),
                    KLocale::FancyShortDate);
 
You need to verify your kde settings.
Perhaps install german language in your distro
Comment 4 Arek Guzinski 2016-02-10 20:36:03 UTC
ok, i see the problem now...

> I saw in your screenshot that all is in english so it's the problem.
yes, it is. and it should be, because, for several reasons, i prefer english as my interface language. However, i really really hate the US/UK date format, which is why i set my time to de_DE (btw: yes, i live in germany)

i had a quick look at the dolphin source code, where QLocale is used, which displays the date the way i want it (dd.mm.yyyy). But QLocale does not support anything like KLocale::FancyShortDate.
As FancyShortDate uses words, it seems to get its locale settings from the LANGUAGE variable, instead of LC_TIME.

i think the correct way to handle this would be to use LANGUAGE for the words and LC_TIME for the rest (as, i believe, it was in kde 4) which is, of course, an issue for the kf5 libraries and not a bug in akregator. I'll file a report there.
Comment 5 Geoff M 2016-08-04 04:27:41 UTC
Akregator displays dates as DD/MM/YY hh:mm AM/PM
it's supposed to display time in EN_CA format - YYYY-MM-DD hh:mm AM/PM as configured in my time format.
Don't know why this is still unconfirmed?