SVN commit 1139258 by prakash: Fixing a bug in WUT, it showed the next day for the moon set time when the rise time and set times were on the same day. [Does this fix the bug 211772 as well?] CCMAIL: kstar-devel@kde.org M +6 -0 wutdialog.cpp --- trunk/KDE/kdeedu/kstars/kstars/tools/wutdialog.cpp #1139257:1139258 @@ -211,6 +211,12 @@ } WUT->MoonRiseLabel->setText( i18n( "Moon rises at: %1 on %2", sRise, KGlobal::locale()->formatDate( Evening.date(), KLocale::LongDate) ) ); + + // If the moon rises and sets on the same day, this will be valid [ Unless + // the moon sets on the next day after staying on for over 24 hours ] + if( moonSet > moonRise ) + WUT->MoonSetLabel->setText( i18n( "Moon sets at: %1 on %2", sSet, KGlobal::locale()->formatDate( Evening.date(), KLocale::LongDate) ) ); + else WUT->MoonSetLabel->setText( i18n( "Moon sets at: %1 on %2", sSet, KGlobal::locale()->formatDate( Tomorrow.date(), KLocale::LongDate) ) ); oMoon->findPhase(); WUT->MoonIllumLabel->setText( oMoon->phaseName() + QString( " (%1%)" ).arg(