From dd0d89e7d157195e00fb73a0cc31de7448ae06d9 Mon Sep 17 00:00:00 2001 From: waruneeta Date: Mon, 5 Feb 2024 16:31:36 +0700 Subject: [PATCH] =?UTF-8?q?=E0=B9=81=E0=B8=81=E0=B9=89=E0=B8=9F=E0=B8=B1?= =?UTF-8?q?=E0=B8=87=E0=B8=81=E0=B9=8C=E0=B8=8A=E0=B8=B1=E0=B9=88=E0=B8=99?= =?UTF-8?q?=20convert=20=E0=B8=A7=E0=B8=B1=E0=B8=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/stores/mixin.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/stores/mixin.ts b/src/stores/mixin.ts index 6d2ba7c..a091e50 100644 --- a/src/stores/mixin.ts +++ b/src/stores/mixin.ts @@ -1012,7 +1012,7 @@ export const useCounterMixin = defineStore("mixin", () => { //Convert to an array and store const calcFormat = calcFormatTmp.split("-"); //Subtract each member of our array from the default date - const days_passed = Number(Math.abs(Number(calcFormat[0])) - 1); + const days_passed = Number(Math.abs(Number(calcFormat[0]))); const months_passed = Number(Math.abs(Number(calcFormat[1])) - 1); const years_passed = Number(Math.abs(Number(calcFormat[2])) - 1970);