From 514af281e39cb54daf667305b3f98e0782dbe689 Mon Sep 17 00:00:00 2001 From: Thiago Macieira Date: Wed, 14 Jan 2015 16:27:31 -0800 Subject: Add QTimeZone::{systemTimeZone,utc} [ChangeLog][QtCore][QTimeZone] Added methods systemTimeZone() and utc() that return QTimeZone objects for the system time zone and for UTC, respectively. Change-Id: Ic5d393bfd36e48a193fcffff13b96821bb8514b9 Reviewed-by: Lars Knoll --- src/corelib/tools/qtimezone.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/corelib/tools/qtimezone.h') diff --git a/src/corelib/tools/qtimezone.h b/src/corelib/tools/qtimezone.h index ef0bdc57cd..e35cee6bbe 100644 --- a/src/corelib/tools/qtimezone.h +++ b/src/corelib/tools/qtimezone.h @@ -117,6 +117,8 @@ public: OffsetDataList transitions(const QDateTime &fromDateTime, const QDateTime &toDateTime) const; static QByteArray systemTimeZoneId(); + static QTimeZone systemTimeZone(); + static QTimeZone utc(); static bool isTimeZoneIdAvailable(const QByteArray &ianaId); -- cgit v1.2.3