Update so that time is accurate to the ms

This commit is contained in:
Nicholas Orlowsky 2022-10-06 20:52:35 -05:00 committed by GitHub
parent 025e993700
commit 4cbddfdba7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -5,7 +5,7 @@ import 'bootstrap/dist/css/bootstrap.min.css';
function App() { function App() {
const today = new Date(); const today = new Date();
const setup_time = new Date(today.getFullYear(), today.getMonth() - 1, today.getDate()); const setup_time = new Date(today.getFullYear(), today.getMonth() - 1, today.getDate(), today.getHours(), today.getMinutes(), today.getSeconds(), today.getMilliseconds());
const [monitors, setMonitors] = useState(new Array<any>()); const [monitors, setMonitors] = useState(new Array<any>());
useEffect(() => { useEffect(() => {