mirror of
https://github.com/gotson/komga.git
synced 2026-05-09 05:10:19 +02:00
fix: better date parsing for epub metadata
This commit is contained in:
parent
b3bcd233fd
commit
ed7fa1fcb8
1 changed files with 5 additions and 1 deletions
|
|
@ -121,7 +121,11 @@ class EpubMetadataProvider(
|
||||||
try {
|
try {
|
||||||
LocalDate.parse(date, DateTimeFormatter.ISO_LOCAL_DATE)
|
LocalDate.parse(date, DateTimeFormatter.ISO_LOCAL_DATE)
|
||||||
} catch (e: Exception) {
|
} catch (e: Exception) {
|
||||||
null
|
try {
|
||||||
|
LocalDate.parse(date, DateTimeFormatter.ISO_DATE_TIME)
|
||||||
|
} catch (e: Exception) {
|
||||||
|
null
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue