Skip to content

Commit

Permalink
fix date
Browse files Browse the repository at this point in the history
  • Loading branch information
ftomei committed Aug 18, 2024
1 parent 90792f7 commit 9b060b6
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion bin/CRITERIA3D/mainwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -750,7 +750,12 @@ void MainWindow::updateDateTime()
void MainWindow::updateModelTime()
{
QDate date = myProject.getCurrentDate();
int hour = myProject.getCurrentHour();
int hour = myProject.getCurrentHour() - 1;
if (hour == -1)
{
date = date.addDays(-1);
hour = 23;
}
int minutes = int(floor(myProject.currentSeconds / 60));
int seconds = myProject.currentSeconds - (minutes * 60);
if (minutes == 60)
Expand Down

0 comments on commit 9b060b6

Please sign in to comment.