@po-ui/ng-components 14.1.0 → 14.2.0
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/esm2020/lib/components/po-field/po-datepicker/po-datepicker-base.component.mjs +3 -8
- package/esm2020/lib/utils/util.mjs +2 -12
- package/fesm2015/po-ui-ng-components.mjs +2 -17
- package/fesm2015/po-ui-ng-components.mjs.map +1 -1
- package/fesm2020/po-ui-ng-components.mjs +2 -17
- package/fesm2020/po-ui-ng-components.mjs.map +1 -1
- package/lib/utils/util.d.ts +0 -1
- package/package.json +4 -4
- package/po-ui-ng-components-14.2.0.tgz +0 -0
- package/schematics/ng-add/index.js +1 -1
- package/schematics/ng-update/v14/index.js +1 -1
- package/schematics/ng-update/v2/index.js +1 -1
- package/schematics/ng-update/v3/index.js +1 -1
- package/schematics/ng-update/v4/index.js +1 -1
- package/schematics/ng-update/v5/index.js +1 -1
- package/schematics/ng-update/v6/index.js +1 -1
- package/po-ui-ng-components-14.1.0.tgz +0 -0
|
@@ -864,20 +864,10 @@ function convertIsoToDate(value, start, end) {
|
|
|
864
864
|
return date;
|
|
865
865
|
}
|
|
866
866
|
else {
|
|
867
|
-
|
|
868
|
-
const timezone = new Date().getTimezoneOffset() * 60000;
|
|
869
|
-
return new Date(milliseconds + timezone);
|
|
867
|
+
return new Date(year, month - 1, day);
|
|
870
868
|
}
|
|
871
869
|
}
|
|
872
870
|
}
|
|
873
|
-
function convertIsoToDateNoTimezone(value) {
|
|
874
|
-
if (value) {
|
|
875
|
-
const day = parseInt(value.substring(8, 10), 10);
|
|
876
|
-
const month = parseInt(value.substring(5, 7), 10);
|
|
877
|
-
const year = parseInt(value.substring(0, 4), 10);
|
|
878
|
-
return new Date(year, month - 1, day);
|
|
879
|
-
}
|
|
880
|
-
}
|
|
881
871
|
function convertDateToISODate(date) {
|
|
882
872
|
if (date) {
|
|
883
873
|
const getMonth = date.getMonth() + 1;
|
|
@@ -10878,12 +10868,7 @@ class PoDatepickerBaseComponent {
|
|
|
10878
10868
|
return this._locale || this.shortLanguage;
|
|
10879
10869
|
}
|
|
10880
10870
|
set date(value) {
|
|
10881
|
-
|
|
10882
|
-
this._date = typeof value === 'string' ? convertIsoToDate(value, false, false) : value;
|
|
10883
|
-
}
|
|
10884
|
-
else {
|
|
10885
|
-
this._date = typeof value === 'string' ? convertIsoToDateNoTimezone(value) : value;
|
|
10886
|
-
}
|
|
10871
|
+
this._date = typeof value === 'string' ? convertIsoToDate(value, false, false) : value;
|
|
10887
10872
|
}
|
|
10888
10873
|
get date() {
|
|
10889
10874
|
return this._date;
|