[Kstars-devel] KDE/kdeedu/kstars/kstars

Jason Harris kstars at 30doradus.org
Fri Sep 22 05:24:03 CEST 2006


SVN commit 587251 by harris:

Fixed bug which was causing an off-by-one error in the Date.  It was a 
sign error in KStarsDateTime::setDJD().

Thanks for pointing it out, Jasem.

CCMAIL: kstars-devel at kde.org



 M  +1 -1      kstarsdatetime.cpp  


--- trunk/KDE/kdeedu/kstars/kstars/kstarsdatetime.cpp #587250:587251
@@ -67,7 +67,7 @@
 	DJD = _jd;
 
 	ExtDate dd;
-	dd.setJD( (long int)( _jd + 0.5 ) );
+	dd.setJD( (long int)( _jd - 0.5 ) );
 	ExtDateTime::setDate( dd );
 
 	double dayfrac = _jd - (double)( date().jd() ) + 0.5;


More information about the Kstars-devel mailing list