diff --git a/src/ClockHands.tsx b/src/ClockHands.tsx index c41c08c..b8a8103 100644 --- a/src/ClockHands.tsx +++ b/src/ClockHands.tsx @@ -5,7 +5,7 @@ import { rotate, seconds } from '@/common'; import { getTestId } from '@/utilities'; const hours = seconds / 5; -const getSecondsSinceMidnight = (): number => +const getSecondsSinceMidnight = () => (Date.now() - new Date().setHours(0, 0, 0, 0)) / 1000; const [time, setTime] = createSignal(getSecondsSinceMidnight());