Merge lp:~boiko/messaging-app/fix_timestamps into lp:messaging-app

Proposed by Gustavo Pichorim Boiko
Status: Merged
Approved by: Arthur Mello
Approved revision: 266
Merged at revision: 269
Proposed branch: lp:~boiko/messaging-app/fix_timestamps
Merge into: lp:messaging-app
Diff against target: 50 lines (+5/-18)
2 files modified
src/qml/MessageBubble.qml (+1/-1)
src/qml/ThreadDelegate.qml (+4/-17)
To merge this branch: bzr merge lp:~boiko/messaging-app/fix_timestamps
Reviewer Review Type Date Requested Status
Arthur Mello (community) Approve
PS Jenkins bot continuous-integration Needs Fixing
Review via email: mp+239099@code.launchpad.net

Commit message

Make the time displaying consistent with dialer-app.

Description of the change

Make the time displaying consistent with dialer-app.

== Checklist ==
Are there any related MPs required for this MP to build/function as expected? Please list.
No

Is your branch in sync with latest trunk (e.g. bzr pull lp:trunk -> no changes)
Yes

Did you perform an exploratory manual test run of your code change and any related functionality on device or emulator?
Yes

Did you successfully run all tests found in your component's Test Plan (https://wiki.ubuntu.com/Process/Merges/TestPlan/<package-name>) on device or emulator?
Yes

If you changed the UI, was the change specified/approved by design?
N/A

If you changed UI labels, did you update the pot file?
N/A

If you changed the packaging (debian), did you add a core-dev as a reviewer to this MP?
N/A

To post a comment you must log in.
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
Arthur Mello (artmello) wrote :

Did you perform an exploratory manual test run of the code change and any related functionality on device or emulator?
yes

Did you successfully run all tests found in your component's Test Plan (https://wiki.ubuntu.com/Process/Merges/TestPlan/dialer-app) on device or emulator?
yes

Did CI run pass? If not, please explain why.
yes

Have you checked that submitter has accurately filled out the submitter checklist and has taken no shortcut?
yes

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'src/qml/MessageBubble.qml'
2--- src/qml/MessageBubble.qml 2014-10-07 16:57:03 +0000
3+++ src/qml/MessageBubble.qml 2014-10-21 16:19:28 +0000
4@@ -129,7 +129,7 @@
5 if (messageTimeStamp === "")
6 return ""
7
8- var str = Qt.formatTime(messageTimeStamp).toLowerCase()
9+ var str = Qt.formatTime(messageTimeStamp, Qt.DefaultLocaleShortDate)
10 if (root.accountName.length === 0 || !root.messageIncoming) {
11 return str
12 }
13
14=== modified file 'src/qml/ThreadDelegate.qml'
15--- src/qml/ThreadDelegate.qml 2014-09-09 02:19:45 +0000
16+++ src/qml/ThreadDelegate.qml 2014-10-21 16:19:28 +0000
17@@ -145,29 +145,16 @@
18 text: groupChat ? groupChatLabel : unknownContact ? delegateHelper.phoneNumber : delegateHelper.alias
19 }
20
21- Row {
22+ Label {
23 id: time
24
25- property string dateStr: Qt.formatTime(eventTimestamp)
26- property var dateParts: dateStr.split(' ')
27-
28 anchors {
29 verticalCenter: contactName.verticalCenter
30 right: parent.right
31 }
32- Label {
33- fontSize: "x-small"
34- font.weight: Font.DemiBold
35- opacity: 0.70
36- text: time.dateParts[0]
37- }
38- Label {
39- fontSize: "x-small"
40- opacity: 0.70
41- text: time.dateParts.length > 1 ? " " + time.dateParts[1].toLowerCase() : ""
42- // do not display this if the date format is 24h
43- visible: time.dateParts.length > 1
44- }
45+
46+ text: Qt.formatTime(eventTimestamp, Qt.DefaultLocaleShortDate)
47+ fontSize: "small"
48 }
49
50 UbuntuShape {

Subscribers

People subscribed via source and target branches