Use minute precision for timetable date filters
This commit is contained in:
1 parent
05c9341b08
commit
0e77998e92
3 files changed
+9
-3
No files matched your search
@@ -104,7 +104,7 @@
|
||||
return '';
|
||||
}
|
||||
function pad(part) { return String(part).padStart(2, '0'); }
|
||||
return date.getFullYear() + '-' + pad(date.getMonth() + 1) + '-' + pad(date.getDate()) + 'T' + pad(date.getHours()) + ':' + pad(date.getMinutes()) + ':' + pad(date.getSeconds());
|
||||
return date.getFullYear() + '-' + pad(date.getMonth() + 1) + '-' + pad(date.getDate()) + 'T' + pad(date.getHours()) + ':' + pad(date.getMinutes());
|
||||
}
|
||||
|
||||
function getDateRangeConfig(regionId, card, current) {
|
||||
@@ -362,7 +362,7 @@
|
||||
var label = boundary === 'from' ? 'Starts on or after (local time)' : 'Starts on or before (local time)';
|
||||
return '<div class="col-12 col-md-6" data-timetable-boundary' + (!enabled ? ' hidden' : '') + '>' +
|
||||
'<label class="form-label" for="region_' + field + '_' + region.id + '">' + label + '</label>' +
|
||||
'<input id="region_' + field + '_' + region.id + '" type="datetime-local" step="1" class="form-control" data-timetable-date="' + field + '" value="' + escapeHtml(toLocalInput(current[field])) + '"' + (!enabled ? ' disabled' : '') + ' />' +
|
||||
'<input id="region_' + field + '_' + region.id + '" type="datetime-local" step="60" class="form-control" data-timetable-date="' + field + '" value="' + escapeHtml(toLocalInput(current[field])) + '"' + (!enabled ? ' disabled' : '') + ' />' +
|
||||
'<input type="hidden" name="region_' + field + '_' + region.id + '" value="' + escapeHtml(current[field] || '') + '" />' +
|
||||
'</div>';
|
||||
}).join('') +
|
||||
|
||||
Reference in new issue
Block a user