Closed maennchen closed 3 years ago
Thanks for the report. Clearly a regression. Fixed, added a test and published ex_cldr_dates_times version 2.6.2. Changelog entry is:
Cldr.NoDefaultBackendError (No default :ex_cldr backend is configured)
exception. Closes #18. Thanks to @maennchen.@kipcole9 Hm, it still doesn't look solved:
** (Cldr.NoDefaultBackendError) No default :ex_cldr backend is configured
code: assert pdf_binary = Quarantine.render_pdf(case, phase)
stacktrace:
(ex_cldr 2.18.2) lib/cldr/config/config.ex:328: Cldr.Config.default_backend/0
(ex_cldr 2.18.2) lib/cldr.ex:434: Cldr.put_default_locale/1
(ex_cldr 2.18.2) lib/cldr.ex:380: Cldr.default_locale/0
(ex_cldr_dates_times 2.6.2) lib/cldr/date.ex:121: Cldr.Date.normalize_options/2
(ex_cldr_dates_times 2.6.2) lib/cldr/date.ex:97: Cldr.Date.to_string/3
(ex_cldr_dates_times 2.6.2) lib/cldr/date.ex:197: Cldr.Date.to_string!/3
(acme 0.0.0-noversion) lib/acme/templates/confirmation.html.eex:102: Acme."confirmation.html"/1
My apologies, that was sloppy. I had fixed it for Cldr.DateTime.to_string/3
but not for Cldr.Date.to_string/3
and Cldr.Time.to_string/3
. Now done, with additional tests and published as ex_cldr_dates_times 2.6.3.
Cldr.NoDefaultBackendError (No default :ex_cldr backend is configured)
exception. Closes #18 properly. Thanks to @maennchen.@kipcole9 Tests pass again with 2.6.3
, thanks a lot for the fast reaction. :heart:
Code
Result
Expected
A formatted Date
Versions
The only affected version is
2.6.1
,2.6.0
works without any problems.