Skip to content

Start date for Jan is shown wrongly when a date range between Dec and Jan is selected #96

@radhakrishnan86

Description

@radhakrishnan86

When Dec and Jan months are selected, start day of Jan month is calculated based on year previous year. When 2021 Dec and Jan 2022 are selected, start day of Jan is calculated based on 2021 and not 2022. Jan 2022 should start with Saturday instead its starting with Friday.
Below code is causing the issue.

    startNextMonthDay: function () {
      return new Date(this.activeYearStart, this.startNextActiveMonth, 1).getDay()
    },

Steps to reproduce

Select a date range between 2021 Dec and Jan 2022.

What is Expected?

Jan 1st 2022 should start with Saturday.

What is actually happening?

Jan 1st 2022 is starting with with Friday.

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