https://bugs.kde.org/show_bug.cgi?id=405282

--- Comment #2 from Christoph Feck <cf...@kde.org> ---
createDateLabel() uses KFileItem::timeString() which in turn uses
QDateTime::toString(). The documentation for this function is a bit vague about
how it decides about the format, it seems to suggest that the format is "Wed
May 20 03:40:13 1998" but with individual fields translated via current
QLocale.

I suggest to use QLocale::toString(dateTime, QLocale::LongFormat) instead, but
unsure if it should be changed in KFileItem or in the RenameDialog.

References:
https://cgit.kde.org/kio.git/tree/src/widgets/renamedialog.cpp#n77
https://api.kde.org/frameworks/kio/html/kfileitem_8cpp_source.html#l01280
https://doc.qt.io/Qt-5/qdatetime.html#toString-1
https://doc.qt.io/Qt-5/qlocale.html#toString-16

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to