แก้ฟังก์ชั่น convert วัน
This commit is contained in:
parent
e8c7d7ff3d
commit
dd0d89e7d1
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue