mountainMath/canpumf

French locale

Closed this issue · 1 comments

list_available_lfs_pumf_versions() internally uses date to string conversions that are locale-dependent, and it breaks for users with non-english locale set. In particular for French users.

This should get fixed by either setting English locale temporarily or otherwise making sure the date to string conversions are locale-independent.

E.g. wrapping the date conversion by

lct <- Sys.getlocale("LC_TIME")
Sys.setlocale("LC_TIME", "C")

and

Sys.setlocale("LC_TIME", lct)

fixes this

Should be fixed now on main branch. (Bumped version to 0.1.7).