Skip to content
Snippets Groups Projects
Verified Commit 667b343d authored by Nik | Klampfradler's avatar Nik | Klampfradler
Browse files

Convert date format string to proprietary datepicker format

parent 08fb24d4
No related branches found
No related tags found
1 merge request!134Resolve "Add i18n for materialize datepicker"
Pipeline #708 failed
......@@ -8,7 +8,7 @@ $(document).ready( function () {
// Initialize datepicker [MAT]
$('.datepicker').datepicker({
format: get_format('SHORT_DATE_FORMAT'),
format: get_format('SHORT_DATE_FORMAT').toLowerCase().replace('d', 'dd').replace('m', 'mm').replace('y', 'yyyy'),
// Pull translations from Django helpers
i18n: {
months: calendarweek_i18n.month_names,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment