From 9922772701f4b000366d4eb62d62da7927ef2f04 Mon Sep 17 00:00:00 2001 From: Valexr Date: Sun, 14 Apr 2024 10:59:50 +0200 Subject: [PATCH] fix counter --- src/App.svelte | 95 +++++++++++++++----------------------------------- 1 file changed, 28 insertions(+), 67 deletions(-) diff --git a/src/App.svelte b/src/App.svelte index c0bdc7b..e28f3c3 100644 --- a/src/App.svelte +++ b/src/App.svelte @@ -6,70 +6,32 @@ @@ -96,14 +58,13 @@ /> - +

{new Date().toLocaleDateString("ru")}

-

{years(new Date(start))} years

-

{months(new Date(start))} months

-

{weeks(new Date(start))} weeks

-

{days(new Date(start))} days

+

{county(start).years()} years

+

{county(start).months()} months

+

{county(start).days()} days

{$time}