summaryrefslogtreecommitdiffstats
path: root/qml
diff options
context:
space:
mode:
authorCaroline Chao <caroline.chao@digia.com>2014-10-16 11:09:17 +0200
committerCaroline Chao <caroline.chao@digia.com>2014-10-16 12:04:23 +0200
commit8eba046f807b405233ce9e6350249dd44d93dbc8 (patch)
tree7ea3057d425c08e74aaa41507d9225bf5c07362c /qml
parent1ecc4dd2429e528c6d5173f2b287ae12b0c3f802 (diff)
Twitter, show date when elapsed time is over 24 hours
Change-Id: I9f02342fed9c7aadb9ebdf3e114325e45e933c27 Reviewed-by: Niels Weber <niels.weber@digia.com>
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");