Skip to content

Commit

Permalink
Merge branch 'main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
yarisvt authored Dec 4, 2024
2 parents 6cbfeaf + 97c3cee commit 2b2dffd
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,9 @@ private boolean processApi() throws UpdateException {
builder.withEndpoint(endpoint);
}
if (lastModifiedRequest != null) {
final ZonedDateTime end = lastModifiedRequest.minusDays(-120);
// make it UTC as required by NvdCveClientBuilder#withLastModifiedFilter
lastModifiedRequest = lastModifiedRequest.withZoneSameInstant(ZoneId.of("UTC"));
final ZonedDateTime end = lastModifiedRequest.plusDays(120);
builder.withLastModifiedFilter(lastModifiedRequest, end);
}
final String key = settings.getString(Settings.KEYS.NVD_API_KEY);
Expand Down

0 comments on commit 2b2dffd

Please sign in to comment.