@datarailsshared/datarailsshared 1.4.135 → 1.4.136
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/datarailsshared-datarailsshared.umd.js +2 -3
- package/bundles/datarailsshared-datarailsshared.umd.js.map +1 -1
- package/datarailsshared-datarailsshared-1.4.136.tgz +0 -0
- package/esm2015/lib/utils/dr-shared-utils.js +3 -4
- package/fesm2015/datarailsshared-datarailsshared.js +2 -3
- package/fesm2015/datarailsshared-datarailsshared.js.map +1 -1
- package/package.json +1 -1
- package/datarailsshared-datarailsshared-1.4.135.tgz +0 -0
|
@@ -4156,7 +4156,7 @@
|
|
|
4156
4156
|
}
|
|
4157
4157
|
};
|
|
4158
4158
|
DrSharedUtils.getDateByTag = function (tag) {
|
|
4159
|
-
var todayDate = moment__namespace().utc();
|
|
4159
|
+
var todayDate = moment__namespace().utc().endOf('day');
|
|
4160
4160
|
switch (tag) {
|
|
4161
4161
|
case exports.DateTags.TODAY:
|
|
4162
4162
|
return todayDate;
|
|
@@ -4167,8 +4167,7 @@
|
|
|
4167
4167
|
todayDate.endOf('month');
|
|
4168
4168
|
return todayDate;
|
|
4169
4169
|
case exports.DateTags.PREV_MONTH:
|
|
4170
|
-
todayDate.endOf('month');
|
|
4171
|
-
todayDate.subtract(1, 'months');
|
|
4170
|
+
todayDate.subtract(1, 'months').endOf('month');
|
|
4172
4171
|
return todayDate;
|
|
4173
4172
|
}
|
|
4174
4173
|
};
|