mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-08 04:05:26 +03:00
Show correct times
This commit is contained in:
parent
4b0de0015f
commit
b54bdd6b64
@ -154,6 +154,10 @@ export default function DesktopTimelineView({
|
||||
const isSelected =
|
||||
timeline.range.start == selectedPlayback.range.start;
|
||||
const graphData = timelineGraphData[timeline.range.start];
|
||||
const start = new Date(timeline.range.start * 1000);
|
||||
const end = new Date(
|
||||
Math.min(timeline.range.end * 1000, new Date().getTime())
|
||||
);
|
||||
|
||||
return (
|
||||
<div
|
||||
@ -178,10 +182,10 @@ export default function DesktopTimelineView({
|
||||
}
|
||||
options={{
|
||||
snap: null,
|
||||
min: new Date(timeline.range.start * 1000),
|
||||
max: new Date(timeline.range.end * 1000),
|
||||
start: new Date(timeline.range.start * 1000),
|
||||
end: new Date(timeline.range.end * 1000),
|
||||
min: start,
|
||||
max: end,
|
||||
start: start,
|
||||
end: end,
|
||||
zoomable: false,
|
||||
height: "120px",
|
||||
}}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user