@datarailsshared/datarailsshared 1.4.134 → 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;
@@ -4164,11 +4164,10 @@
4164
4164
  todayDate.subtract(1, 'days');
4165
4165
  return todayDate;
4166
4166
  case exports.DateTags.THIS_MONTH:
4167
- todayDate.month();
4167
+ todayDate.endOf('month');
4168
4168
  return todayDate;
4169
4169
  case exports.DateTags.PREV_MONTH:
4170
- todayDate.month();
4171
- todayDate.subtract(1, 'months');
4170
+ todayDate.subtract(1, 'months').endOf('month');
4172
4171
  return todayDate;
4173
4172
  }
4174
4173
  };