You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm not sure why, but the date 11/17/2039 12:00:00 AM UTC produces a JulianDate that is off by one day (November 16 instead of 17). The problem appears to be in computeJulianDateComponents and is most likely a rounding error. I was able to fix the error (by re-porting some Components code) but that caused other tests to start failing (seemingly due to a rounding error in the other direction). The below test should pass, but doesn't.
it('Construct problem dates', function() {
var expectedDate = new JulianDate(2466109, 43235.0, TimeStandard.TAI);
var date = JulianDate.fromDate(new Date('11/17/2039 12:00:00 AM UTC'));
expect(date).toEqual(expectedDate);
});
The text was updated successfully, but these errors were encountered:
Unfortunately, yes. I have no idea why. I spent some time looking into it and the first "bad" date is 03/01/2034 12:00:00 AM UTC, everything before that works as expected.
I'm not sure why, but the date
11/17/2039 12:00:00 AM UTC
produces aJulianDate
that is off by one day (November 16 instead of 17). The problem appears to be incomputeJulianDateComponents
and is most likely a rounding error. I was able to fix the error (by re-porting some Components code) but that caused other tests to start failing (seemingly due to a rounding error in the other direction). The below test should pass, but doesn't.The text was updated successfully, but these errors were encountered: