class LegacyDetectorRepositoryImpl implements LegacyDetectorRepository {

    @Override
    public List<DetectorDocument> getLastUpdatedDetectors(long interval) {
        // Replaced Lombok val with explicit types here because the Maven compiler plugin was breaking under
        // OpenJDK 12. Not sure what the issue was but this fixed it. [WLW]
        Instant now = DateUtil.now().toInstant();
        String fromDate = DateUtil.toUtcDateString((now.minus(interval, ChronoUnit.SECONDS)));
        String toDate = DateUtil.toUtcDateString(now);
        return getLastUpdatedDetectors(fromDate, toDate);
    }

}