Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
w3stling committed Dec 1, 2024
1 parent 81f51ce commit 6b2e6fa
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/java/com/apptasticsoftware/rssreader/DateTime.java
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
*/
package com.apptasticsoftware.rssreader;

import com.apptasticsoftware.rssreader.util.Default;
import com.apptasticsoftware.rssreader.util.ItemComparator;

import java.time.*;
Expand Down Expand Up @@ -477,7 +478,7 @@ public Instant toInstant(String dateTime) {
@SuppressWarnings("java:S1133")
@Deprecated(since="3.3.0", forRemoval=true)
public static Comparator<Item> pubDateComparator() {
var dateTime = new DateTime();
var dateTime = Default.getDateTimeParser();
return Comparator.comparing(i -> i.getPubDate().map(dateTime::toInstant).orElse(Instant.EPOCH));
}

Expand Down

0 comments on commit 6b2e6fa

Please sign in to comment.