Locale date/time issues
ODF 'date' and 'time' does not correspond to QDate and QTime, 'date' is actually always a datetime and 'time' is a duration.
It means 'date' must always be saved as a datetime or else data is lost, and 'time' can have an hour part that is grater then 24.
Some issues I have seen:
- datetime format is not (fully) implemented
- date is saved as a QDate, so looses data
- time is saved using a QTime so 'corrupts' data if hour >= 24
- separators containing formatting chararcters are not quoted on load
- unit tests needs some love
I plan to look at this this week.
Some background.
The LO locale files are not very good. They are inconsistent and incomplete, so imo cannot be used for much.
Qt uses the cldr: https://cldr.unicode.org/
This data seems much better and contains a level of detail that QLocale does not have. Qt uses some python scripts to generate code at build time. For date and time formats, they map the richer cldr data into the more limmited capabilities of QLocale.