@sumaris-net/ngx-components 1.14.2 → 1.14.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.
@@ -2608,13 +2608,11 @@
2608
2608
  var date = fromDateISOString(value);
2609
2609
  // No timezone
2610
2610
  if (!timezone) {
2611
- return date.clone().startOf('day');
2611
+ return moment$5(date).startOf('day');
2612
2612
  }
2613
2613
  // Use timezone
2614
- return moment$5.tz(timezone)
2615
- .set('year', date.get('year'))
2616
- .set('month', date.get('month'))
2617
- .set('day', date.get('day'))
2614
+ moment$5(date)
2615
+ .tz(timezone, true)
2618
2616
  .startOf('day');
2619
2617
  };
2620
2618
  return DateUtils;