145 +Date.prototype.formatTime = function (d) {
146 + // TRANSLATORS: this is a time formatting string,
147 + // see http://qt-project.org/doc/qt-5.0/qtqml/qml-qtquick2-date.html#details for valid expressions
148 + var format = qsTr("hh:mm");
149 + return Qt.formatTime(this, format);
150 +}
I was suggested to use following for time date translation, can you also use the same.
var startTime = e.startDateTime.toLocaleTimeString(Qt.locale(), timeFormat);
var endTime = e.endDateTime.toLocaleTimeString(Qt.locale(), timeFormat);
145 +Date.prototype .formatTime = function (d) { qt-project. org/doc/ qt-5.0/ qtqml/qml- qtquick2- date.html# details for valid expressions
146 + // TRANSLATORS: this is a time formatting string,
147 + // see http://
148 + var format = qsTr("hh:mm");
149 + return Qt.formatTime(this, format);
150 +}
I was suggested to use following for time date translation, can you also use the same.
var startTime = e.startDateTime .toLocaleTimeSt ring(Qt. locale( ), timeFormat); toLocaleTimeStr ing(Qt. locale( ), timeFormat);
var endTime = e.endDateTime.
BTW above code is from EventDetails.