File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -14,9 +14,7 @@ export const getEventsFromCalendar = async url => {
1414/**
1515 * @param {Date } start
1616 */
17- export const getWeekBounds = ( start = new Date ( ) ) => {
18- start . setUTCHours ( 0 , 0 , 0 , 0 ) ;
19-
17+ export const getNextWeek = ( start = new Date ( ) ) => {
2018 const end = new Date ( start ) ;
2119 end . setUTCDate ( start . getUTCDate ( ) + 7 ) ;
2220
@@ -30,7 +28,7 @@ export const getWeekBounds = (start = new Date()) => {
3028 * @returns {Promise<Date|null> } The date of the next meeting, or null if no meeting is found
3129 */
3230export const findNextMeetingDate = async ( allEvents , { properties } ) => {
33- const [ weekStart , weekEnd ] = getWeekBounds ( ) ;
31+ const [ weekStart , weekEnd ] = getNextWeek ( ) ;
3432
3533 const filteredEvents = allEvents . filter (
3634 event =>
You can’t perform that action at this time.
0 commit comments