diff --git a/bvletools.user.js b/bvletools.user.js index d1ec1a8a32f70e67fbd5b5a776c222720294576f..f335ac2b7eecded07d9ff70baf7a53ead46944d3 100644 --- a/bvletools.user.js +++ b/bvletools.user.js @@ -57,7 +57,7 @@ var now = new Date(); var today = new Date(now.getFullYear(), now.getMonth(), now.getDate()); var lastSunday = new Date(today.setDate(today.getDate()-today.getDay())); - var nextSaturday = new Date(lastSunday).setDate(lastSunday.getDate() + 7); + var nextSaturday = new Date(lastSunday).setDate(lastSunday.getDate() + 6); var url = "https://vle.bromcomcloud.com/Timetable/GetTimeTable?WeekStartDate=" + formatDate(lastSunday) + "&weekEndDate=" + formatDate(nextSaturday) + "&type=1&id=0"; $.ajax({url: url, method: "POST", dataType: "json"}) .done((data) => {