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
=== modified file 'src/qml/HistoryPage/HistoryDelegate.qml'
--- src/qml/HistoryPage/HistoryDelegate.qml 2014-09-24 17:55:17 +0000
+++ src/qml/HistoryPage/HistoryDelegate.qml 2014-12-16 01:41:36 +0000
@@ -227,7 +227,7 @@
227 // TRANSLATORS: this string is the time a call has happenend. It represents the format to be used, according to:227 // TRANSLATORS: this string is the time a call has happenend. It represents the format to be used, according to:
228 // http://qt-project.org/doc/qt-5/qml-qtqml-qt.html#formatDate-method228 // http://qt-project.org/doc/qt-5/qml-qtqml-qt.html#formatDate-method
229 // please change according to your language229 // please change according to your language
230 text: Qt.formatTime(model.timestamp, i18n.tr("hh:mm ap"))230 text: Qt.formatTime(model.timestamp, Qt.DefaultLocaleShortDate)
231 }231 }
232232
233 Label {233 Label {
234234
=== modified file 'src/qml/HistoryPage/HistoryDetailsPage.qml'
--- src/qml/HistoryPage/HistoryDetailsPage.qml 2014-09-19 13:55:32 +0000
+++ src/qml/HistoryPage/HistoryDetailsPage.qml 2014-12-16 01:41:36 +0000
@@ -258,7 +258,7 @@
258 id: timeLabel258 id: timeLabel
259 // TRANSLATORS: HH:mm is the time format, translate it according to:259 // TRANSLATORS: HH:mm is the time format, translate it according to:
260 // http://qt-project.org/doc/qt-5/qml-qtqml-qt.html#formatDate-method260 // http://qt-project.org/doc/qt-5/qml-qtqml-qt.html#formatDate-method
261 text: Qt.formatTime(modelData.timestamp, i18n.tr("hh:mm ap"))261 text: Qt.formatTime(modelData.timestamp, Qt.DefaultLocaleShortDate)
262 anchors {262 anchors {
263 left: parent.left263 left: parent.left
264 verticalCenter: parent.verticalCenter264 verticalCenter: parent.verticalCenter

Subscribers

People subscribed via source and target branches