zach-m / jonix

Commercial-grade library for extracting data from ONIX sources
Apache License 2.0
57 stars 17 forks source link

Improvement on dateformat #35

Open larskristianhaga opened 6 months ago

larskristianhaga commented 6 months ago

We just stumbled upon an issue with the dateformat when trying to parse the date value with the dateformat result.

Here is an complete example: image

Instead of the parser giving out YYYYMMDD, that is not usable directly should it not give out yyyyMMdd instead? The latter is parseable with eg DateTimeFormatter

zach-m commented 5 months ago

well, I guess the people from EDItEUR that maintain the Onix standard do not concern themselves with how DateTimeFormatter expects to find the format.. they use their own interpretation of data-time format. Your code needs to transform their format into Java's. If you do that, that could be a nice contribution to Jonix as a utility function.