Calculate days remaining from stored date

This commit is contained in:
Toast 2025-03-27 02:11:53 +01:00
parent 4d11c90709
commit d3ea32dfca

View file

@ -72,7 +72,7 @@ Kirigami.ApplicationWindow {
Kirigami.Heading { Kirigami.Heading {
Layout.fillWidth: true Layout.fillWidth: true
level: 1 level: 1
text: date text: i18n("%1 days", Math.round((date-Date.now())/86400000))
} }
ColumnLayout { ColumnLayout {
Kirigami.Heading { Kirigami.Heading {