Fixed crash for dates before JD -1.5 when local format is used.
parent
957cd00244
commit
9a36f6d66f
|
@ -407,6 +407,7 @@ astro::Date::Date(double jd)
|
|||
{
|
||||
int64 a = (int64) floor(jd + 0.5);
|
||||
wday = (a + 1) % 7;
|
||||
if (wday < 0) wday += 7;
|
||||
double c;
|
||||
if (a < 2299161)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue