Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
radhakrishnan86 opened this issue Jan 12, 2022 · 0 comments

Comments

@radhakrishnan86
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant