@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.
@@ -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
  };