title: How can I return the date in a custom format in this Qt/QML plasmoid?
body: <p>The digital clock in KDE Plasma 5.4.0 does not allow you to specify a custom format. I'm attempted to hack the plasmoid, which is just a QML file. However, I've been unsuccessful. There is a conditional branch, which allows you select from one of the following strings.</p>
  <pre><code>return Qt.SystemLocaleLongDate;
  return Qt.ISODate;
  return Qt.SystemLocaleShortDate;
  </code></pre>
  <p>I attempted to modify it to the following, but it's not working. Presumably I just have the syntax wrong.</p>
  <pre><code>return QDate::currentDate().toString(&quot;dd.MM.yyyy&quot;);
  </code></pre>
  <p>How can I modify the plasmoid to show a custom date format?</p>
  <h2>EDIT</h2>
  <p>I suspect that I might be changing the wrong line. The source code for the plasmoid I'm trying to hack is <a href="http://download.kde.org/stable/plasma/5.4.0/plasma-workspace-5.4.0.tar.xz" rel="nofollow noreferrer">here</a>. After decompressing the file, it's specifically at <code>applets/digital-clock/package/</code>. (When installed, this directory is moved to <code>/usr/share/plasma/plasmoids/org.kde.plasma.digitalclock/</code>.) I attempted changing line 43 of <code>contents/ui/DigitalClock.qml</code>.</p>
  <p>I attempted changing the line to <code>return &quot;foo&quot;;</code>, but this had no effect. Again, I'm not sure if I have the syntax correct.</p>