Merge lp:~boiko/dialer-app/rtm-fix_timestamps into lp:dialer-app/rtm-14.09

Proposed by Gustavo Pichorim Boiko
Status: Merged
Approved by: Bill Filler
Approved revision: 245
Merged at revision: 246
Proposed branch: lp:~boiko/dialer-app/rtm-fix_timestamps
Merge into: lp:dialer-app/rtm-14.09
Diff against target: 25 lines (+2/-2)
2 files modified
src/qml/HistoryPage/HistoryDelegate.qml (+1/-1)
src/qml/HistoryPage/HistoryDetailsPage.qml (+1/-1)
To merge this branch: bzr merge lp:~boiko/dialer-app/rtm-fix_timestamps
Reviewer Review Type Date Requested Status
Ubuntu Phablet Team Pending
Review via email: mp+244815@code.launchpad.net

Commit message

Format timestamps according to the locale.

Description of the change

Format timestamps according to the locale.

To post a comment you must log in.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'src/qml/HistoryPage/HistoryDelegate.qml'
2--- src/qml/HistoryPage/HistoryDelegate.qml 2014-09-24 17:55:17 +0000
3+++ src/qml/HistoryPage/HistoryDelegate.qml 2014-12-16 01:41:36 +0000
4@@ -227,7 +227,7 @@
5 // TRANSLATORS: this string is the time a call has happenend. It represents the format to be used, according to:
6 // http://qt-project.org/doc/qt-5/qml-qtqml-qt.html#formatDate-method
7 // please change according to your language
8- text: Qt.formatTime(model.timestamp, i18n.tr("hh:mm ap"))
9+ text: Qt.formatTime(model.timestamp, Qt.DefaultLocaleShortDate)
10 }
11
12 Label {
13
14=== modified file 'src/qml/HistoryPage/HistoryDetailsPage.qml'
15--- src/qml/HistoryPage/HistoryDetailsPage.qml 2014-09-19 13:55:32 +0000
16+++ src/qml/HistoryPage/HistoryDetailsPage.qml 2014-12-16 01:41:36 +0000
17@@ -258,7 +258,7 @@
18 id: timeLabel
19 // TRANSLATORS: HH:mm is the time format, translate it according to:
20 // http://qt-project.org/doc/qt-5/qml-qtqml-qt.html#formatDate-method
21- text: Qt.formatTime(modelData.timestamp, i18n.tr("hh:mm ap"))
22+ text: Qt.formatTime(modelData.timestamp, Qt.DefaultLocaleShortDate)
23 anchors {
24 left: parent.left
25 verticalCenter: parent.verticalCenter

Subscribers

People subscribed via source and target branches