Describe the bug
Minor bug on the billing period message that displays an invalid period range:
Should be from Oct1 to Oct 31 (or Nov 1) but not Nov 30. Might be because today is the last day of the month?
Current locale: GMT-5
|
//periods |
|
const periodStart = new Date(); |
|
periodStart.setUTCHours(0, 0, 0, 0); |
|
periodStart.setUTCDate(1); |
|
|
|
const periodEnd = new Date(); |
|
periodEnd.setUTCMonth(periodEnd.getMonth() + 1); |
|
periodEnd.setUTCDate(0); |
|
periodEnd.setUTCHours(0, 0, 0, 0); |
|
|
|
const daysRemaining = Math.ceil( |
|
(periodEnd.getTime() - new Date().getTime()) / (1000 * 60 * 60 * 24) |
|
); |
Describe the bug
Minor bug on the billing period message that displays an invalid period range:
Should be from Oct1 to Oct 31 (or Nov 1) but not Nov 30. Might be because today is the last day of the month?
Current locale: GMT-5
trigger.dev/apps/webapp/app/routes/_app.orgs.$organizationSlug.v3.billing/route.tsx
Lines 44 to 56 in da08e50