@tap-payments/os-micro-frontend-shared 0.0.303 → 0.0.304
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/build/utils/date.js +1 -1
- package/package.json +1 -1
package/build/utils/date.js
CHANGED
|
@@ -58,7 +58,7 @@ export const formatUTCOffset = (offset = 0) => {
|
|
|
58
58
|
const paddedOffset = Math.abs(offset).toString().padStart(2, '0');
|
|
59
59
|
return `UTC${sign}${paddedOffset}:00`;
|
|
60
60
|
};
|
|
61
|
-
export const getDefaultDateRange = (startDay =
|
|
61
|
+
export const getDefaultDateRange = (startDay = 6) => {
|
|
62
62
|
const monthDaysMinus = dayjs().subtract(startDay, 'day').hour(0).minute(0).second(0).toDate();
|
|
63
63
|
const today = dayjs(new Date()).hour(23).minute(59).second(59).toDate();
|
|
64
64
|
return [monthDaysMinus, today];
|
package/package.json
CHANGED