Changeset View
Changeset View
Standalone View
Standalone View
resources/kolab/pimkolab/calendaring/datetimeutils.cpp
Show All 18 Lines | |||||
19 | 19 | | |||
20 | #include <QTimeZone> | 20 | #include <QTimeZone> | ||
21 | #include "conversion/commonconversion.h" | 21 | #include "conversion/commonconversion.h" | ||
22 | 22 | | |||
23 | namespace Kolab { | 23 | namespace Kolab { | ||
24 | namespace DateTimeUtils { | 24 | namespace DateTimeUtils { | ||
25 | KOLAB_EXPORT std::string getLocalTimezone() | 25 | KOLAB_EXPORT std::string getLocalTimezone() | ||
26 | { | 26 | { | ||
27 | const QString tz = QTimeZone::systemTimeZoneId(); | 27 | const auto tz = QTimeZone::systemTimeZoneId(); | ||
28 | return tz.toStdString(); | 28 | return tz.toStdString(); | ||
29 | } | 29 | } | ||
30 | } //Namespace | 30 | } //Namespace | ||
31 | } //Namespace | 31 | } //Namespace |