Skip to content

Commit

Permalink
Jelix files not updated for the datetimepicker fix
Browse files Browse the repository at this point in the history
  • Loading branch information
laurentj committed Sep 12, 2024
1 parent 45f4dce commit 6858950
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,14 @@ var jelix_datetimepicker_default_Manager = {
};
}

if(!control.lang) {
params.dateFormat = 'yy-mm-dd';
params.timeFormat = "hh:mm";
// we force the format, it should correspond to the date we give to the widget
params.dateFormat = 'yy-mm-dd';
params.timeFormat = "HH:mm";

let locale = jFormsJQ.config.locale.split('_',2);
let lang = locale[0];
if (lang in $.timepicker.regional) {
$.timepicker.setDefaults($.timepicker.regional[lang]);
}

elt.datetimepicker(params);
Expand Down

0 comments on commit 6858950

Please sign in to comment.