@acorex/core 3.0.35 → 3.0.37
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.
- package/bundles/acorex-core.umd.js +1 -1
- package/bundles/acorex-core.umd.js.map +1 -1
- package/bundles/acorex-core.umd.min.js.map +1 -1
- package/esm2015/lib/classes/datetime.class.js +2 -2
- package/esm5/lib/classes/datetime.class.js +2 -2
- package/fesm2015/acorex-core.js +1 -1
- package/fesm2015/acorex-core.js.map +1 -1
- package/fesm5/acorex-core.js +1 -1
- package/fesm5/acorex-core.js.map +1 -1
- package/package.json +1 -1
|
@@ -539,7 +539,7 @@
|
|
|
539
539
|
return moment(date).locale('fa').format('YYYY/M/D');
|
|
540
540
|
};
|
|
541
541
|
AXDateTime.prototype.convertStringToGregorian = function (date, format) {
|
|
542
|
-
return new Date(
|
|
542
|
+
return new Date(moment.from(date, 'fa', 'YYYY/MM/DD').format('YYYY/MM/DD'));
|
|
543
543
|
};
|
|
544
544
|
AXDateTime.prototype.add = function (unit, amount) {
|
|
545
545
|
if (unit === void 0) { unit = 'day'; }
|