summaryrefslogtreecommitdiffstats
path: root/qml
diff options
context:
space:
mode:
Diffstat (limited to 'qml')
-rw-r--r--qml/components/HomeScreen.qml6
1 files changed, 1 insertions, 5 deletions
diff --git a/qml/components/HomeScreen.qml b/qml/components/HomeScreen.qml
index f36e36b..1585958 100644
--- a/qml/components/HomeScreen.qml
+++ b/qml/components/HomeScreen.qml
@@ -439,12 +439,8 @@ Rectangle {
return Math.round(diff / 60) + "m"
if (diff <= 5400) // 1,5h
return "1h"
- if (diff <= 84600) // 23,5h
+ if (diff <= 88200) // 24,5h
return Math.round(diff / 3600) + "h"
- if (diff <= 129600) // 36h
- return "1 day"
- if (diff <= 561600) // 6,5 days
- return Math.round(diff / 86400) + " days"
var createdDateFormated = new Date()
createdDateFormated.setTime(now.getTime() - diff *1000) // createdAt in local format
return Qt.formatDate(createdDateFormated, "d MMM");