ublo-lib 1.39.18 → 1.39.19
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.
|
@@ -40,7 +40,7 @@ export function getChristmasWeek(endWeek, yearOffset = 0) {
|
|
|
40
40
|
export function dateToWeek(date, christmasWeek) {
|
|
41
41
|
const diff = date - christmasWeek;
|
|
42
42
|
const days = Math.floor(diff / (1000 * 60 * 60 * 24));
|
|
43
|
-
const weeks = Math.
|
|
43
|
+
const weeks = Math.floor(days / 7);
|
|
44
44
|
return weeks;
|
|
45
45
|
}
|
|
46
46
|
function getFiltrableSections() {
|