tnx-shared 5.3.275 → 5.3.276
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/tnx-shared.umd.js +1 -1
- package/bundles/tnx-shared.umd.js.map +1 -1
- package/bundles/tnx-shared.umd.min.js +1 -1
- package/bundles/tnx-shared.umd.min.js.map +1 -1
- package/esm2015/services/common.service.js +2 -2
- package/fesm2015/tnx-shared.js +1 -1
- package/fesm2015/tnx-shared.js.map +1 -1
- package/package.json +2 -2
|
@@ -4724,7 +4724,7 @@
|
|
|
4724
4724
|
};
|
|
4725
4725
|
CommonService.prototype.getStartDayEndDayWeek = function (date) {
|
|
4726
4726
|
if (date === void 0) { date = new Date(); }
|
|
4727
|
-
var tmpDate = new Date(date.
|
|
4727
|
+
var tmpDate = new Date(date.toDateString());
|
|
4728
4728
|
var dateDiff = tmpDate.getDate() - tmpDate.getDay() + (tmpDate.getDay() == 0 ? -6 : 1);
|
|
4729
4729
|
var startDate = new Date(tmpDate.setDate(dateDiff));
|
|
4730
4730
|
var endDate = new Date(new Date(tmpDate.setDate(dateDiff + 6)));
|