Commit 5572b3fa authored by Nicolas Fella's avatar Nicolas Fella
Browse files

Fix build with newer Qt

parent 90d01921
Pipeline #40930 failed with stage
in 11 minutes and 42 seconds
......@@ -757,7 +757,7 @@ QString alarmTimeText(const DateTime& dateTime, char leadingZero)
bool useFullFormat = leadingZero && !timeFullFormat.isEmpty();
QString timeText = kdt.time().toString(useFullFormat ? timeFullFormat : timeFormat);
if (useFullFormat && leadingZero != '0' && timeText.at(hourOffset) == QLatin1Char('0'))
timeText[hourOffset] = leadingZero;
timeText[hourOffset] = QChar::fromLatin1(leadingZero);
dateTimeText += timeText;
}
return dateTimeText + QLatin1Char(' ');
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment