ngx-wapp-components 1.26.2 → 1.26.3

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.
@@ -888,8 +888,8 @@ var WDatePipeReturnType;
888
888
  class DateConversionService {
889
889
  constructor() { }
890
890
  formatUTCDate(date) {
891
- const inputDate = typeof date === 'string' ? new Date(`${date}.000Z`) : date;
892
- if (isNaN(inputDate.getTime())) {
891
+ const inputDate = typeof date === 'string' ? new Date(`${date}Z`) : date;
892
+ if (isNaN(inputDate?.getTime())) {
893
893
  return null;
894
894
  }
895
895
  return new Date(inputDate.toISOString());