1
0
Fork 0
mirror of https://github.com/silenty4ng/k5web synced 2025-04-19 00:29:49 +00:00
This commit is contained in:
Silent YANG 2024-02-05 23:20:22 +08:00
parent 2fa972d5de
commit 762c0df773

View file

@ -130,7 +130,7 @@ onUnmounted(()=>{
})
const syncTime = async () => {
const date = new Date(new Date().getTime() + 1000);
const date = new Date();
const dateArray = [
...hexReverseStringToUint8Array(parseInt(date.getFullYear().toString().substring(2,4)).toString(16)),
...hexReverseStringToUint8Array((date.getMonth() + 1).toString(16)),