Skip to content

Commit

Permalink
fix utc
Browse files Browse the repository at this point in the history
  • Loading branch information
ftomei committed Dec 10, 2023
1 parent d1b3ab8 commit 11a5ea0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bin/CRITERIA3D/mainwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1876,7 +1876,7 @@ bool selectDates(QDateTime &firstTime, QDateTime &lastTime)
return false;
}

firstTime.setTimeZone(QTimeZone::UTC);
firstTime.setTimeZone(QTimeZone::utc());
if (myProject.getCurrentHour() == 24)
{
firstTime.setDate(myProject.getCurrentDate().addDays(1));
Expand All @@ -1889,7 +1889,7 @@ bool selectDates(QDateTime &firstTime, QDateTime &lastTime)
}
firstTime = firstTime.addSecs(HOUR_SECONDS);

lastTime.setTimeZone(QTimeZone::UTC);
lastTime.setTimeZone(QTimeZone::utc());
lastTime = firstTime;
lastTime.setTime(QTime(23,0,0));

Expand Down

0 comments on commit 11a5ea0

Please sign in to comment.