@mtgame/core 1.0.11 → 1.0.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1386,7 +1386,7 @@
|
|
|
1386
1386
|
return null;
|
|
1387
1387
|
}
|
|
1388
1388
|
var diff = (new Date()).getTime() - this.birthDate.getTime();
|
|
1389
|
-
return Math.floor(diff / (
|
|
1389
|
+
return Math.floor(diff / (1000 * 60 * 60 * 24 * 365.25));
|
|
1390
1390
|
},
|
|
1391
1391
|
enumerable: false,
|
|
1392
1392
|
configurable: true
|
|
@@ -3819,7 +3819,7 @@
|
|
|
3819
3819
|
return null;
|
|
3820
3820
|
}
|
|
3821
3821
|
var diff = (new Date()).getTime() - this.birthDate.getTime();
|
|
3822
|
-
return Math.floor(diff / (
|
|
3822
|
+
return Math.floor(diff / (1000 * 60 * 60 * 24 * 365.25));
|
|
3823
3823
|
},
|
|
3824
3824
|
enumerable: false,
|
|
3825
3825
|
configurable: true
|