mirror of
https://github.com/DI0IK/homepage-plus.git
synced 2025-07-08 06:38:46 +00:00
Fix: remove date time load delay (#2675)
This commit is contained in:
parent
7f621ed518
commit
a24b5d2fd1
1 changed files with 1 additions and 0 deletions
|
@ -23,6 +23,7 @@ export default function DateTime({ options }) {
|
|||
|
||||
useEffect(() => {
|
||||
const dateFormat = new Intl.DateTimeFormat(dateLocale, { ...format });
|
||||
setDate(dateFormat.format(new Date()));
|
||||
const interval = setInterval(() => {
|
||||
setDate(dateFormat.format(new Date()));
|
||||
}, 1000);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue