@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.
@@ -864,20 +864,10 @@ function convertIsoToDate(value, start, end) {
864
864
  return date;
865
865
  }
866
866
  else {
867
- const milliseconds = Date.parse(value);
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
- if (this.isExtendedISO) {
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;