Skip to content

Commit e9dd84f

Browse files
Rm substring call
1 parent 380c303 commit e9dd84f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ public DateWrapper getUploadDate() throws ParsingException {
224224
}
225225

226226
return parseOptionalDate(dateText, "MMM dd, yyyy")
227-
.or(() -> parseOptionalDate(dateText.substring(3), "dd MMM yyyy"))
227+
.or(() -> parseOptionalDate(dateText, "dd MMM yyyy"))
228228
.map(date -> {
229229
final var instant = date.atStartOfDay(ZoneId.systemDefault()).toInstant();
230230
return new DateWrapper(instant, true);

0 commit comments

Comments
 (0)