EpubMetadataExtractor: Failed to parse date from string: 2024
Bug Report Template for Booklore
What happened?
Booklore cannot parse a date when it is only a year
How can we see it happen?
Steps to reproduce the issue:
- Add a book which has e.g. "2024" as date in the metdata
- You see a warning in the logs
What did you expect to happen?
Assume maybe 1st January of the year 2024 as date.
Screenshots or Error Messages
booklore | 2025-11-07T22:47:42.355+01:00 WARN 10 --- [booklore-api] [ virtual-37] c.a.b.s.m.e.EpubMetadataExtractor : Failed to parse date from string: 2024
About your setup:
- Booklore version (e.g., v0.35.0) v1.10.0
- What computer or device are you using? (Windows, Mac, Linux, etc.) Linux
- Which browser and version? (Chrome, Firefox, Safari, etc.) Firefox
- How did you install Booklore? (Docker, manual install, etc.)docker-compose
I am using Booklore v1.11 my client is a windows 11 but my server is a linux debian, running docker i am using Firefox 145.0.1 booklore is installed as a docker container with a MariaDB database (also container) version 11.4.8
this is my error: 2025-11-24T17:47:10.191Z WARN 10 --- [booklore-api] [nio-8080-exec-6] c.a.b.s.m.e.EpubMetadataExtractor : Failed to parse date from string: 1972
books are uploaded fine, but no record is written in the database.