Commit 46e00d05 authored by Laurent Montel's avatar Laurent Montel 😁

Use qputenv

parent a8516a58
......@@ -65,7 +65,7 @@ using DateTimeRange = QPair<QDateTime, QDateTime>;
void EventDataVisitorTest::initTestCase()
{
setenv("TZ", "Europe/Berlin", 1);
qputenv("TZ", "Europe/Berlin");
}
void EventDataVisitorTest::testGenerateUID_data()
......
......@@ -31,7 +31,7 @@ Q_DECLARE_METATYPE(CalendarEvents::EventData)
void PimEventsPluginTest::initTestCase()
{
setenv("TZ", "Europe/Berlin", 1);
qputenv("TZ", "Europe/Berlin");
qRegisterMetaType<DateEventDataHash>("QMultiHash<QDate, CalendarEvents::EventData>");
qRegisterMetaType<CalendarEvents::EventData>("CalendarEvents::EventData");
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment