Kaynağa Gözat

Fix due date filter for next and this week.

helioguardabaxo 2 yıl önce
ebeveyn
işleme
946c288925
1 değiştirilmiş dosya ile 2 ekleme ve 2 silme
  1. 2 2
      client/lib/filter.js

+ 2 - 2
client/lib/filter.js

@@ -118,7 +118,7 @@ class DateFilter {
         .add(weekStartDay, 'days');
       var WeekEnd = WeekStart
         .clone()
-        .add(offset, 'week')
+        .add(6, 'days')
         .endOf('day');
 
       this._updateState('thisweek');
@@ -130,7 +130,7 @@ class DateFilter {
         .add(weekStartDay + 7, 'days');
       var WeekEnd = WeekStart
         .clone()
-        .add(offset, 'week')
+        .add(6, 'days')
         .endOf('day');
 
      this._updateState('nextweek');