| Summary: | aKregator does not honor LC_TIME / date and time in wrong format | ||
|---|---|---|---|
| Product: | [Applications] akregator | Reporter: | Arek Guzinski <kermit> |
| Component: | general | Assignee: | kdepim bugs <pim-bugs-null> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | CC: | geoffm, montel, piny |
| Priority: | NOR | ||
| Version First Reported In: | unspecified | ||
| Target Milestone: | --- | ||
| Platform: | Ubuntu | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
| Attachments: | Screenshot | ||
|
Description
Arek Guzinski
2016-02-09 16:44:12 UTC
screenshot please Created attachment 97111 [details]
Screenshot
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
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.
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? This has been properly working for a while now. |