Code review comment for lp:~yohanboniface/ubuntu-calendar-app/AgendaView

Revision history for this message
ybon (yohanboniface) wrote :

If I replace
Date.prototype.formatDate = function () {
    // TRANSLATORS: this is a date formatting string,
    // see http://qt-project.org/doc/qt-5.0/qtqml/qml-qtquick2-date.html#details for valid expressions
    var format = qsTr("dd MMMM yyyy");
    return Qt.formatDate(this, format);
}

by

Date.prototype.formatDate = function () {
    this.toLocaleTimeString(Qt.locale(), "dd MMMM yyyy");
    return this;
}

I only have raw date printed.
It may be that Qt.locale() without argument is not finding any default.

« Back to merge proposal