Skip to content

Commit 3007441

Browse files
committed
Update WeatherDataProvider.cpp
1 parent f56aa89 commit 3007441

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/weather/WeatherDataProvider.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -360,7 +360,7 @@ QString Weather::WeatherDataProvider::sunInfo()
360360
sunrise = localTime;
361361
sunrise.setTime(QTime::fromMSecsSinceStartOfDay(qRound(sunriseTimeInMin*60*1000)));
362362
sunrise = sunrise.toOffsetFromUtc(0);
363-
sunrise.setTimeZone(QTimeZone(Qt::UTC));
363+
sunrise.setTimeZone(QTimeZone(QTimeZone::UTC));
364364
}
365365

366366
auto sunsetTimeInMin = sun.calcSunset();
@@ -369,7 +369,7 @@ QString Weather::WeatherDataProvider::sunInfo()
369369
sunset = localTime;
370370
sunset.setTime(QTime::fromMSecsSinceStartOfDay(qRound(sunsetTimeInMin*60*1000)));
371371
sunset = sunset.toOffsetFromUtc(0);
372-
sunset.setTimeZone(QTimeZone(Qt::UTC));
372+
sunset.setTimeZone(QTimeZone(QTimeZone::UTC));
373373
}
374374

375375
localTime = localTime.addDays(1);
@@ -381,7 +381,7 @@ QString Weather::WeatherDataProvider::sunInfo()
381381
sunriseTomorrow = localTime;
382382
sunriseTomorrow.setTime(QTime::fromMSecsSinceStartOfDay(qRound(sunriseTomorrowTimeInMin*60*1000)));
383383
sunriseTomorrow = sunriseTomorrow.toOffsetFromUtc(0);
384-
sunriseTomorrow.setTimeZone(QTimeZone(Qt::UTC));
384+
sunriseTomorrow.setTimeZone(QTimeZone(QTimeZone::UTC));
385385
}
386386

387387
if (sunrise.isValid() && sunset.isValid() && sunriseTomorrow.isValid())

0 commit comments

Comments
 (0)