fix: better date parsing for epub metadata

This commit is contained in:
Gauthier Roebroeck 2021-06-22 14:24:08 +08:00
parent b3bcd233fd
commit ed7fa1fcb8

View file

@ -121,7 +121,11 @@ class EpubMetadataProvider(
try {
LocalDate.parse(date, DateTimeFormatter.ISO_LOCAL_DATE)
} catch (e: Exception) {
null
try {
LocalDate.parse(date, DateTimeFormatter.ISO_DATE_TIME)
} catch (e: Exception) {
null
}
}
}
}