fix: use ISO 8601 for date in age counter

This commit is contained in:
trafficlunar 2026-01-14 17:59:37 +00:00
parent 3c7f74fcce
commit 133486724a

View file

@ -6,7 +6,7 @@
onMount(() => { onMount(() => {
const interval = setInterval(() => { const interval = setInterval(() => {
// only people who can read code can see my birthday // only people who can read code can see my birthday
const birthday = new Date(2010, 2, 3); const birthday = new Date("2010-02-03T00:00:00.000Z");
const currentDate = new Date(); const currentDate = new Date();
const diffInMs = currentDate.getTime() - birthday.getTime(); const diffInMs = currentDate.getTime() - birthday.getTime();