Skip to content

getWeekOfMonth() with options.weekStartsOn set to 1 doesn't work for Sundays #1040

@daandvs

Description

@daandvs

When executing getWeekOfMonth(new Date(2019, 4, 5), { weekStartsOn: 1 }) it returns me 2 while I expect it to be 1.
It seems getWeekOfMonth() is always a week off when executed with a day set to Sunday and options.weekStartsOn set to > 0.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy