Skip to content

Day in month table no marked as active, when using moment.timezone #48

@stereonom

Description

@stereonom

Hi!

The problem is this line
let currentDayModel = new Date(currentYear, dayMonth - 1, day)

let currentDayModel = new Date(currentYear, dayMonth - 1, day)

Because after that u are using the moment-adapter to compare currentDayModel with min and max using isSameOrAfter / isSameOrBefore

When moments timezone is set to another timezone, the day u are comparing is not on the day currentDayModel is.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions