Add comment on fallback for system zone ID

Change-Id: I6a1eabf2894c549deace7d35bc18781c3fd3df4a
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
This commit is contained in:
Edward Welbourne 2022-11-22 14:48:06 +01:00
parent 992b92d8c4
commit 6825487bc9

View File

@ -786,6 +786,7 @@ QByteArray QTimeZone::systemTimeZoneId()
auto zone = systemTimeZone();
if (zone.isValid() && !zone.id().isEmpty())
return zone.id();
// TODO: "-00:00", meaning "unspecified local zone" in some RFC, may be more apt.
// If all else fails, guess UTC.
return QTimeZonePrivate::utcQByteArray();
}