From 8e6cc14981879b24ae16d52e43c515ced242608a Mon Sep 17 00:00:00 2001 From: Simon Smith Date: Fri, 29 Mar 2024 18:11:29 +0000 Subject: [PATCH] set flatpickr to 1 minute increments (#5974) Signed-off-by: si458 --- views/default.handlebars | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/views/default.handlebars b/views/default.handlebars index 2b111cfdfd..7ce89f1746 100644 --- a/views/default.handlebars +++ b/views/default.handlebars @@ -8280,8 +8280,8 @@ showShareDeviceValidate(); var tomorrow = new Date(); tomorrow.setDate(tomorrow.getDate() + 1); - var rangeTime = flatpickr('#d2timeRangeSelector', { mode: 'range', enableTime: true, minDate: new Date(), defaultDate: [ new Date(), tomorrow ] }); - var startTime = flatpickr('#d2timeStartSelector', { enableTime: true, minDate: new Date(), defaultDate: new Date() }); + var rangeTime = flatpickr('#d2timeRangeSelector', { mode: 'range', enableTime: true, minDate: new Date(), defaultDate: [ new Date(), tomorrow ], minuteIncrement: 1 }); + var startTime = flatpickr('#d2timeStartSelector', { enableTime: true, minDate: new Date(), defaultDate: new Date(), minuteIncrement: 1 }); xxdialogTag = { range: rangeTime, start: startTime }; } @@ -17237,7 +17237,7 @@ var lastWeek = new Date(); lastWeek.setDate(lastWeek.getDate() - 7); - var rangeTime = flatpickr('#d2timeRangeSelector', { mode: 'range', enableTime: true, maxDate: new Date(), defaultDate: [ lastWeek, new Date() ] }); + var rangeTime = flatpickr('#d2timeRangeSelector', { mode: 'range', enableTime: true, maxDate: new Date(), defaultDate: [ lastWeek, new Date() ], minuteIncrement: 1 }); xxdialogTag = rangeTime; }