Unverified Commit ee4c146c authored by Jerome Boucher's avatar Jerome Boucher
Browse files

feat/16380 : rework dateTime formatting

parent c49d6a20
Pipeline #12495 failed with stages
in 45 seconds
......@@ -619,7 +619,6 @@
case 'text':
if (value !== '') {
if ($(this).hasClass('datePicker')) {
var operation = ($(this).data('range') == 'start') ? ">=" : "<=";
value = name + operation + "'" + $(this).data('datepicker').getFormattedDate('yyyy-mm-dd') + "'";
......@@ -632,8 +631,12 @@
}
break;
} else if ($(this).hasClass('dateTimePicker')) {
// cannot use dateTimePicker formatting because he add a random number of seconds in formatting
var splitDateTime = $(this).val().split(' ');
dateConverted = convertDate(splitDateTime[0]) + ' ' + splitDateTime[1];
var operation = ($(this).data('range') == 'start') ? ">=" : "<=";
value = name + operation + "'" + $(this).data('DateTimePicker').date().format('YYYY-MM-DD HH:MM:SS') + "'";
value = name + operation + "'" + dateConverted + "'";
// Fill start and end values
if (parameters.description[name] == undefined) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment