Skip to content

bug: webapp billing period description #1445

@ubinatus

Description

@ubinatus

Describe the bug

Minor bug on the billing period message that displays an invalid period range:

image

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)
);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions