Use minute precision for timetable date filters
Publish Docker Image / build-and-push-existing-registry (./build/Dockerfile, web, pulse-signage-web) (push) Successful in 1m13s
Publish Docker Image / build-and-push-existing-registry (./build/Dockerfile.player, player, pulse-signage-player) (push) Successful in 33s

This commit is contained in:
lzstealth committed 2026-10-17 16:17:01 +01:00
1 parent 05c9341b08
commit 0e77998e92
3 files changed
+9 -3

No files matched your search

+2 -2
View File
@@ -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('') +