tfussell / xlnt

:bar_chart: Cross-platform user-friendly xlsx library for C++11+
Other
1.47k stars 409 forks source link

Added support for the System Default locale for the Time and Long Date types #601

Closed doomlaur closed 2 years ago

doomlaur commented 2 years ago

Explanation: https://bz.apache.org/ooo/show_bug.cgi?id=70003

This fixes issues with some locales where "system default" is the default setting for times and dates. This happens, for example, when using German (Austria) as a locale in Windows, or when setting it manually in Excel.

Especially when languages such as German (Austria) are used, where the "system default" is used for such types, the user is not aware of the locale and the probability of creating an Excel file that cannot be loaded by XLNT is very high.

This pull request fixes this issue.