[Kstars-devel] KDE/kdeedu/libkdeedu/extdate
Jason Harris
kstars at 30doradus.org
Sun Feb 18 00:25:07 CET 2007
SVN commit 634683 by harris:
Fix subtle bug in JDToGregorian() that was causing off-by-one date errors.
CCMAIL: kstars-devel at kde.org
M +1 -1 extdatetime.cpp
--- trunk/KDE/kdeedu/libkdeedu/extdate/extdatetime.cpp #634682:634683
@@ -147,7 +147,7 @@
float g;
int z, a, b, c;
- z = jd - 1721118;
+ z = int(jd - 1721118.5);
g = z - 0.25;
a = int(floor( g / 36524.25 ));
More information about the Kstars-devel
mailing list