Skip to content

Commit fe31a90

Browse files
Remove DateTimeFormatter.ISO_OFFSET_DATE_TIME usage.
1 parent b13c7e1 commit fe31a90

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

extractor/src/main/java/org/schabi/newpipe/extractor/services/youtube/extractors/YoutubeFeedInfoItemExtractor.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88

99
import javax.annotation.Nullable;
1010
import java.time.OffsetDateTime;
11-
import java.time.format.DateTimeFormatter;
1211
import java.time.format.DateTimeParseException;
1312

1413
public class YoutubeFeedInfoItemExtractor implements StreamInfoItemExtractor {
@@ -61,7 +60,7 @@ public String getTextualUploadDate() {
6160
@Override
6261
public DateWrapper getUploadDate() throws ParsingException {
6362
try {
64-
return new DateWrapper(OffsetDateTime.parse(getTextualUploadDate(), DateTimeFormatter.ISO_OFFSET_DATE_TIME));
63+
return new DateWrapper(OffsetDateTime.parse(getTextualUploadDate()));
6564
} catch (DateTimeParseException e) {
6665
throw new ParsingException("Could not parse date (\"" + getTextualUploadDate() + "\")", e);
6766
}

0 commit comments

Comments
 (0)