Skip to content

Commit

Permalink
Call getDecYear in getDeltaTByEspenakMeeus. (Stellarium#205)
Browse files Browse the repository at this point in the history
  • Loading branch information
gongminmin authored and gzotti committed Jun 20, 2018
1 parent 38fdfc6 commit 98e53aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/StelUtils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1459,7 +1459,7 @@ double getDeltaTByEspenakMeeus(const double jDay)
// A summary is described here:
// http://eclipse.gsfc.nasa.gov/SEhelp/deltatpoly2004.html

double y = year+((month-1)*30.5+day/31.*30.5)/366;
double y = getDecYear(year, month, day);

// set the default value for Delta T
double u = (y-1820)/100.;
Expand Down

0 comments on commit 98e53aa

Please sign in to comment.