ublo-lib 1.47.102 → 1.47.103
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"weeks.d.ts","sourceRoot":"","sources":["../../../../../src/common/components/week-selector/services/weeks.ts"],"names":[],"mappings":"AAYA,wBAAgB,UAAU,CAAC,GAAG,IAAI,EAAE,MAAM,EAAE,QAO3C;AAoBD,wBAAgB,gBAAgB,CAAC,OAAO,KAAA,EAAE,UAAU,SAAI,
|
|
1
|
+
{"version":3,"file":"weeks.d.ts","sourceRoot":"","sources":["../../../../../src/common/components/week-selector/services/weeks.ts"],"names":[],"mappings":"AAYA,wBAAgB,UAAU,CAAC,GAAG,IAAI,EAAE,MAAM,EAAE,QAO3C;AAoBD,wBAAgB,gBAAgB,CAAC,OAAO,KAAA,EAAE,UAAU,SAAI,QAUvD;AAED,wBAAgB,UAAU,CAAC,IAAI,KAAA,EAAE,aAAa,KAAA,EAAE,UAAU,SAAI,UAoB7D;AAMD,wBAAgB,YAAY,SAY3B;AAED,wBAAgB,MAAM,CAAC,IAAI,EAAE,MAAM,QAwBlC;AAED,wBAAgB,UAAU,CAAC,IAAI,KAAA,EAAE,OAAO,KAAA,EAAE,UAAU,SAAI,QAEvD;AAED,wBAAgB,WAAW,CAAC,IAAI,KAAA,UAG/B"}
|
|
@@ -29,8 +29,7 @@ export function getChristmasWeek(endWeek, yearOffset = 0) {
|
|
|
29
29
|
const now = createDate();
|
|
30
30
|
const year = now.getFullYear();
|
|
31
31
|
const month = now.getMonth();
|
|
32
|
-
const
|
|
33
|
-
const isAfterChristmas = (month === 11 && date >= 25) || month < 5;
|
|
32
|
+
const isAfterChristmas = month < 5;
|
|
34
33
|
const lastChristmasYear = (isAfterChristmas ? year - 1 : year) + yearOffset;
|
|
35
34
|
const lastChristmas = createDate(lastChristmasYear, 11, 25);
|
|
36
35
|
const nextChristmas = createDate(lastChristmasYear + 1, 11, 25);
|