UTCScale#offsetToTAI is not zero before first leap second
In my own unit tests I noticed an issue that I tracked down to UTCScale#offsetToTAI. It should check if the requested date is before the first leap second as in UTCScale#offsetFromTAI.
Here is a test case that currently fails:
@Test
public void testOffsetToTAIBeforeFirstLeapSecond() throws
OrekitException {
TimeScale scale = TimeScalesFactory.getUTC();
// time before first leap second
DateComponents dateComponents = new DateComponents(1950, 1, 1);
double actual = scale.offsetToTAI(dateComponents, TimeComponents.H00);
assertThat(actual, is(0d));
}
(from redmine: issue id 105, created on 2012-07-05, closed on 2012-07-05)