diff options
Diffstat (limited to 'src/corelib/tools/qtimezone.cpp')
-rw-r--r-- | src/corelib/tools/qtimezone.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/corelib/tools/qtimezone.cpp b/src/corelib/tools/qtimezone.cpp index a739d9c69f..53fd3fb0bf 100644 --- a/src/corelib/tools/qtimezone.cpp +++ b/src/corelib/tools/qtimezone.cpp @@ -52,13 +52,21 @@ QT_BEGIN_NAMESPACE // Create default time zone using appropriate backend static QTimeZonePrivate *newBackendTimeZone() { +#if defined QT_USE_ICU + return new QIcuTimeZonePrivate(); +#else return new QUtcTimeZonePrivate(); +#endif // QT_USE_ICU } // Create named time zone using appropriate backend static QTimeZonePrivate *newBackendTimeZone(const QByteArray &olsenId) { +#if defined QT_USE_ICU + return new QIcuTimeZonePrivate(olsenId); +#else return new QUtcTimeZonePrivate(olsenId); +#endif // QT_USE_ICU } class QTimeZoneSingleton |