mirror of
https://github.com/trafficlunar/website.git
synced 2026-03-28 19:13:11 +00:00
fix: use ISO 8601 for date in age counter
This commit is contained in:
parent
3c7f74fcce
commit
133486724a
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(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();
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue