Skip to content

Commit

Permalink
Fix compiling
Browse files Browse the repository at this point in the history
  • Loading branch information
alex-w committed Sep 20, 2024
1 parent 8bad3b3 commit 56a620e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/gui/AstroCalcAlmanacWidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,8 @@ void AstroCalcAlmanacWidget::setTodayTimes()
return;

const double JD = core->getJD();
const double utcShift = core->getUTCOffset(JD) / 24.; // Fix DST shift...
const double utcOffsetHrs = core->getUTCOffset(JD);
const double utcShift = utcOffsetHrs / 24.; // Fix DST shift...
PlanetP sun = GETSTELMODULE(SolarSystem)->getSun();
double duration, duration1, duration2;
bool astronomicalTwilightBtn, nauticalTwilightBtn, civilTwilightBtn, sunBtn;
Expand Down Expand Up @@ -367,7 +368,7 @@ void AstroCalcAlmanacWidget::setTodayTimes()
civilTwilightDuration = StelUtils::hoursToHmsStr(duration, true);

// fill the data
ui->labelToday->setText(QString("%1 (%2)").arg(q_("Today"), localeMgr->getPrintableDateLocal(JD)));
ui->labelToday->setText(QString("%1 (%2)").arg(q_("Today"), localeMgr->getPrintableDateLocal(JD, utcOffsetHrs)));

ui->labelDayDuration->setText(dayDuration);
ui->labelCivilTwilightBegin->setText(civilTwilightBegin);
Expand Down

0 comments on commit 56a620e

Please sign in to comment.