@softwear/latestcollectioncore 1.0.105 → 1.0.107
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.
- package/dist/articleStatus.js +4 -4
- package/package.json +1 -1
- package/src/articleStatus.ts +4 -4
package/dist/articleStatus.js
CHANGED
|
@@ -374,8 +374,8 @@ const getDateRangeFromPicker = function (inputDates) {
|
|
|
374
374
|
timeFrame,
|
|
375
375
|
utcFromYear: fromDate.getUTCFullYear(),
|
|
376
376
|
utcToYear: toDate.getUTCFullYear(),
|
|
377
|
-
utcFromMonth: fromDate.getUTCMonth(),
|
|
378
|
-
utcToMonth: toDate.getUTCMonth(),
|
|
377
|
+
utcFromMonth: fromDate.getUTCMonth() + 1,
|
|
378
|
+
utcToMonth: toDate.getUTCMonth() + 1,
|
|
379
379
|
fromYear: parseInt((0, date_fns_1.format)(fromDate, 'yyyy')),
|
|
380
380
|
toYear: toDate.getUTCFullYear(),
|
|
381
381
|
fromMonth: parseInt((0, date_fns_1.format)(fromDate, 'MM')),
|
|
@@ -426,8 +426,8 @@ const getDateRangeFromDatePair = function (inputDates) {
|
|
|
426
426
|
timeFrame,
|
|
427
427
|
utcFromYear: fromDate.getUTCFullYear(),
|
|
428
428
|
utcToYear: toDate.getUTCFullYear(),
|
|
429
|
-
utcFromMonth: fromDate.getUTCMonth(),
|
|
430
|
-
utcToMonth: toDate.getUTCMonth(),
|
|
429
|
+
utcFromMonth: fromDate.getUTCMonth() + 1,
|
|
430
|
+
utcToMonth: toDate.getUTCMonth() + 1,
|
|
431
431
|
fromYear: parseInt((0, date_fns_1.format)(fromDate, 'yyyy')),
|
|
432
432
|
toYear: parseInt((0, date_fns_1.format)(toDate, 'yyyy')),
|
|
433
433
|
fromMonth: parseInt((0, date_fns_1.format)(fromDate, 'MM')),
|
package/package.json
CHANGED
package/src/articleStatus.ts
CHANGED
|
@@ -445,8 +445,8 @@ const getDateRangeFromPicker = function (inputDates: string[]): HrTimeframeI {
|
|
|
445
445
|
timeFrame,
|
|
446
446
|
utcFromYear: fromDate.getUTCFullYear(),
|
|
447
447
|
utcToYear: toDate.getUTCFullYear(),
|
|
448
|
-
utcFromMonth: fromDate.getUTCMonth(),
|
|
449
|
-
utcToMonth: toDate.getUTCMonth(),
|
|
448
|
+
utcFromMonth: fromDate.getUTCMonth() + 1,
|
|
449
|
+
utcToMonth: toDate.getUTCMonth() + 1,
|
|
450
450
|
fromYear: parseInt(format(fromDate, 'yyyy')),
|
|
451
451
|
toYear: toDate.getUTCFullYear(),
|
|
452
452
|
fromMonth: parseInt(format(fromDate, 'MM')),
|
|
@@ -499,8 +499,8 @@ const getDateRangeFromDatePair = function (inputDates: string[]): HrTimeframeI {
|
|
|
499
499
|
timeFrame,
|
|
500
500
|
utcFromYear: fromDate.getUTCFullYear(),
|
|
501
501
|
utcToYear: toDate.getUTCFullYear(),
|
|
502
|
-
utcFromMonth: fromDate.getUTCMonth(),
|
|
503
|
-
utcToMonth: toDate.getUTCMonth(),
|
|
502
|
+
utcFromMonth: fromDate.getUTCMonth() + 1,
|
|
503
|
+
utcToMonth: toDate.getUTCMonth() + 1,
|
|
504
504
|
fromYear: parseInt(format(fromDate, 'yyyy')),
|
|
505
505
|
toYear: parseInt(format(toDate, 'yyyy')),
|
|
506
506
|
fromMonth: parseInt(format(fromDate, 'MM')),
|