Commit 52d5acab authored by Tomaz  Canabrava's avatar Tomaz Canabrava
Browse files

Use Qt Locale Format to format the time on the clock

parent 1e8168ad
......@@ -43,7 +43,7 @@ Item {
Plasmoid.preferredRepresentation: Plasmoid.compactRepresentation
Plasmoid.toolTipMainText: Qt.formatDate(dataSource.data["Local"]["DateTime"],"dddd")
Plasmoid.toolTipSubText: Qt.formatTime(dataSource.data["Local"]["DateTime"], "hh:mm") + "\n" +
Plasmoid.toolTipSubText: Qt.formatTime(dataSource.data["Local"]["DateTime"], Qt.locale().timeFormat(Locale.LongFormat)) + "\n" +
Qt.formatDate(dataSource.data["Local"]["DateTime"], Qt.locale().dateFormat(Locale.LongFormat).replace(/(^dddd.?\s)|(,?\sdddd$)/, ""))
PlasmaCore.DataSource {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment