Fix QTzTimeZonePrivate::displayName()'s fallback

It previously fell back on abbreviation, a very poor choice.
The base class does better than that, so use its implementation instead.

Change-Id: I47cbfce815cd8b2b533d9c6aeebcf398e5852d02
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
(cherry picked from commit f9fff26b2db8152dcae26c92054f031bdebd7bc1)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
Edward Welbourne 2021-01-14 16:18:59 +01:00 committed by Qt Cherry-pick Bot
parent 1580c84e1a
commit 90195292f9

View File

@ -902,7 +902,8 @@ QString QTzTimeZonePrivate::displayName(qint64 atMSecsSinceEpoch,
Q_UNUSED(nameType);
Q_UNUSED(locale);
#endif
return abbreviation(atMSecsSinceEpoch);
// Fall back to base-class:
return QTimeZonePrivate::displayName(atMSecsSinceEpoch, nameType, locale);
}
QString QTzTimeZonePrivate::displayName(QTimeZone::TimeType timeType,