ps-toolkit-ui 0.2.60 → 0.2.61
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/ps-toolkit-ui.umd.js +3 -2
- package/bundles/ps-toolkit-ui.umd.js.map +1 -1
- package/bundles/ps-toolkit-ui.umd.min.js +1 -1
- package/bundles/ps-toolkit-ui.umd.min.js.map +1 -1
- package/esm2015/lib/classes/helper.class.js +3 -3
- package/fesm2015/ps-toolkit-ui.js +2 -2
- package/fesm2015/ps-toolkit-ui.js.map +1 -1
- package/lib/classes/helper.class.d.ts +1 -1
- package/package.json +1 -1
|
@@ -1062,13 +1062,14 @@
|
|
|
1062
1062
|
}
|
|
1063
1063
|
return '<div class="ltr">' + moment__namespace(d).locale('fa').format('jYYYY/jMM/jDD HH:mm') + '</div>';
|
|
1064
1064
|
};
|
|
1065
|
-
HelperClass.getDate = function (dt) {
|
|
1065
|
+
HelperClass.getDate = function (dt, format) {
|
|
1066
|
+
if (format === void 0) { format = 'jYYYY/jMM/jDD'; }
|
|
1066
1067
|
try {
|
|
1067
1068
|
if (dt === null) {
|
|
1068
1069
|
return '';
|
|
1069
1070
|
}
|
|
1070
1071
|
var d = parseInt(dt.substring(6, dt.length - 2), 10);
|
|
1071
|
-
return moment__namespace(d).locale('fa').format(
|
|
1072
|
+
return moment__namespace(d).locale('fa').format(format);
|
|
1072
1073
|
}
|
|
1073
1074
|
catch (e) {
|
|
1074
1075
|
return dt;
|