fix: change format of birthday date in age component
This commit is contained in:
parent
1320056d63
commit
e3d41cf239
1 changed files with 1 additions and 1 deletions
|
|
@ -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("03/02/2010");
|
const birthday = new Date(2010, 2, 3);
|
||||||
const currentDate = new Date();
|
const currentDate = new Date();
|
||||||
|
|
||||||
const diffInMs = currentDate.getTime() - birthday.getTime();
|
const diffInMs = currentDate.getTime() - birthday.getTime();
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue