diff --git a/src/corelib/time/qtimezoneprivate.cpp b/src/corelib/time/qtimezoneprivate.cpp index 637d9c8c6f..9032f2cf79 100644 --- a/src/corelib/time/qtimezoneprivate.cpp +++ b/src/corelib/time/qtimezoneprivate.cpp @@ -172,14 +172,6 @@ QTimeZonePrivate::Data QTimeZonePrivate::data(qint64 forMSecsSinceEpoch) const // Private only method for use by QDateTime to convert local msecs to epoch msecs QTimeZonePrivate::Data QTimeZonePrivate::dataForLocalTime(qint64 forLocalMSecs, int hint) const { -#ifndef Q_OS_ANDROID - // The Android back-end's hasDaylightTime() is only true for zones with - // transitions in the future; we need it to mean "has ever had a transition" - // though, so can't trust it here. - if (!hasDaylightTime()) // No DST means same offset for all local msecs - return data(forLocalMSecs - standardTimeOffset(forLocalMSecs) * 1000); -#endif - /* We need a UTC time at which to ask for the offset, in order to be able to add that offset to forLocalMSecs, to get the UTC time we need.