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.

Pick-to: 6.0
Change-Id: I47cbfce815cd8b2b533d9c6aeebcf398e5852d02
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
This commit is contained in:
Edward Welbourne 2021-01-14 16:18:59 +01:00 committed by Thiago Macieira
parent df788cca8b
commit f9fff26b2d

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,