From fd1485930c4d5d3f9453a02eac71c606b7ca4562 Mon Sep 17 00:00:00 2001 From: waruneeta Date: Mon, 5 Feb 2024 16:32:37 +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 9574c4baf..5d75e3e73 100644 --- a/src/stores/mixin.ts +++ b/src/stores/mixin.ts @@ -888,7 +888,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);