mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-02 01:05:20 +03:00
improved local timezone
This commit is contained in:
parent
91027a7108
commit
d8a864f80b
@ -3,8 +3,7 @@ import { useEffect, useState, useCallback, useMemo, useRef } from 'preact/hooks'
|
||||
import ArrowRight from '../icons/ArrowRight';
|
||||
import ArrowRightDouble from '../icons/ArrowRightDouble';
|
||||
|
||||
const oneDay = 60 * 60 * 24 * 1000;
|
||||
const todayTimestamp = Date.now() - (Date.now() % oneDay) + new Date().getTimezoneOffset() * 1000 * 60;
|
||||
const todayTimestamp = new Date().setHours(0, 0, 0, 0).valueOf();
|
||||
|
||||
const Calender = ({ onChange, calenderRef, close }) => {
|
||||
const keyRef = useRef([]);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user