mario-education 2.4.556-feedback → 2.4.557-feedback

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/dist/index.js CHANGED
@@ -72376,19 +72376,6 @@ var getConvertMinuteToHour$1 = function getConvertMinuteToHour(time, usingText)
72376
72376
  var formattedSeconds = String(remainingSeconds).padStart(2, '0');
72377
72377
  return usingText ? formattedHours + " h " + formattedMinutes + " m" : formattedHours + ":" + formattedMinutes + ":" + formattedSeconds;
72378
72378
  };
72379
- var getTimeOfFirstDayCurrentMonth = function getTimeOfFirstDayCurrentMonth() {
72380
- var currentDate = new Date();
72381
- var firstDayOfMonth = new Date(currentDate.getFullYear(), currentDate.getMonth(), 1);
72382
- firstDayOfMonth.setHours(0, 0, 0, 0);
72383
- var timestamp = firstDayOfMonth.getTime();
72384
- return timestamp;
72385
- };
72386
- var getTimeCurrentDay = function getTimeCurrentDay() {
72387
- var currentDate = new Date();
72388
- currentDate.setHours(23, 59, 59, 999);
72389
- var timestamp = currentDate.getTime();
72390
- return timestamp;
72391
- };
72392
72379
  var getTimeOfFirstDayLastMonth = function getTimeOfFirstDayLastMonth() {
72393
72380
  var currentDate = new Date();
72394
72381
  var previousMonth = currentDate.getMonth() - 1;
@@ -72600,8 +72587,8 @@ var useSchoolUsage = function useSchoolUsage() {
72600
72587
  setSchoolInfo = _useState2[1];
72601
72588
 
72602
72589
  var filter = {
72603
- StartDate: getTimeOfFirstDayCurrentMonth(),
72604
- EndDate: getTimeCurrentDay(),
72590
+ StartDate: moment().startOf("month").valueOf(),
72591
+ EndDate: moment().endOf("month").valueOf(),
72605
72592
  StartDateLastMonth: getTimeOfFirstDayLastMonth(),
72606
72593
  EndDateLastMonth: getTimeOfLastDayLastMonth()
72607
72594
  };