fix: change format of birthday date in age component

This commit is contained in:
trafficlunar 2025-10-16 16:05:54 +01:00
parent 1320056d63
commit e3d41cf239

View file

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