Fix last active time in devices page

This commit is contained in:
Tobias Fella
2023-08-05 18:51:42 +02:00
parent c2398b19dc
commit ab4bb41979
3 changed files with 14 additions and 3 deletions

View File

@@ -15,7 +15,7 @@ MobileForm.AbstractFormDelegate {
id: deviceDelegate
required property string id
required property int lastTimestamp
required property string timestamp
required property string displayName
property bool editDeviceName: false
@@ -49,7 +49,7 @@ MobileForm.AbstractFormDelegate {
QQC2.Label {
Layout.fillWidth: true
text: deviceDelegate.id + ", Last activity: " + (new Date(deviceDelegate.lastTimestamp)).toLocaleString(Qt.locale(), Locale.ShortFormat)
text: i18nc("@label", "%1, Last activity: %2", deviceDelegate.id, deviceDelegate.timestamp)
color: Kirigami.Theme.disabledTextColor
font: Kirigami.Theme.smallFont
elide: Text.ElideRight
@@ -131,4 +131,4 @@ MobileForm.AbstractFormDelegate {
}
}
}
}
}