🎨 Run updated prettier

This commit is contained in:
2023-08-25 14:42:38 +02:00
parent 57807e7ce0
commit 70238b4151
19 changed files with 77 additions and 71 deletions

View File

@ -33,7 +33,7 @@ export function getDateSkippingWeekend(date, onlyNext) {
// Go from sunday to last friday or next monday
if (date.getDay() == 0)
return new Date(
onlyNext ? date.getTime() + 86400000 * 1 : date.getTime() - 86400000 * 2
onlyNext ? date.getTime() + 86400000 * 1 : date.getTime() - 86400000 * 2,
);
return date;
}
@ -49,6 +49,6 @@ export function getNextAndPrevDay(date) {
export function setUTCMidnight(date) {
// Set the time to UTC midnight while keeping the correct date
return new Date(
Date.UTC(date.getFullYear(), date.getMonth(), date.getDate())
Date.UTC(date.getFullYear(), date.getMonth(), date.getDate()),
);
}