Fix inital date/time

Signed-off-by: Christian König <ckoenig@posteo.de>
This commit is contained in:
Christian König
2023-11-13 13:58:17 +01:00
parent 4c50b49ed3
commit 3e1ab7ceb3

View File

@@ -34,8 +34,8 @@ function initDateRangePicker() {
timePickerIncrement: 5,
timePicker24Hour: true,
locale: { format: dateformat },
startDate: moment(from * 1000),
endDate: moment(until * 1000),
startDate: moment(from),
endDate: moment(until),
ranges: {
"Last 10 Minutes": [moment().subtract(10, "minutes"), moment()],
"Last Hour": [moment().subtract(1, "hours"), moment()],