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

Götz <goetzchr...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |goetzchr...@gmail.com

--- Comment #4 from Götz <goetzchr...@gmail.com> ---
This is not only useful for vertical taskbar users, more options for the date
format would be very handy for horizontal panels, for example, show the date
without the current year, as it is not useful, who doesn't know the current
year. 

Or a general option to allow a string specifying the format.[1]

Currently in my setup: 
ISO:     2016-08-10 
Short: 10/08/2016


Allowing the user to specify the date using those strings, which QML allows,
one could have:

Monday
Wed
Sep 4
15 Jan
7 October
Wednesday 10 August
10-8
10 Aug


Right know, Plasma 5.7.3, one has to manually edit DigitalClock.qml and in
function setupLabels(), inside if (main.showDate)  For example:

---
/usr/share/plasma/plasmoids/org.kde.plasma.digitalclock/contents/ui/DigitalClock.qml
   2016-08-10 18:44:57.835617323 -0500
+++
/usr/share/plasma/plasmoids/org.kde.plasma.digitalclock/contents/ui/DigitalClock.qml
   2016-08-09 00:56:49.205248552 -0500
@@ -534,7 +534,8 @@

         if (main.showDate) {
             if (main.tooSmall) {
-                dateLabelLeft.text = Qt.formatDate(main.currentTime,
main.dateFormat);
+                dateLabelLeft.text = Qt.formatDate(main.currentTime, "dddd d
MMMM");
             } else {
                 dateLabel.text = Qt.formatDate(main.currentTime,
main.dateFormat);
             }

Instead of main.dateFormat, use string format.[1]

 [1] http://doc.qt.io/qt-5/qml-qtqml-date.html#details

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

Reply via email to