This commit is contained in:
Shusui MOYATANI
2023-03-02 02:27:53 +09:00
parent b1aa63d6a3
commit 3ce64a449d
10 changed files with 133 additions and 129 deletions

View File

@@ -2,6 +2,7 @@ import { createSignal, type Accessor } from 'solid-js';
const [currentDate, setCurrentDate] = createSignal(new Date());
// 7 seconds is used for the interval so that the last digit of relative time is changed.
setInterval(() => {
setCurrentDate(new Date());
}, 7000);