Skip to content

day method does not work after configuring the locale #2781

@cannot-hero

Description

@cannot-hero

Describe the bug
I use dayjs.locale('zh-cn'), but dayjs('2024-11-24').day(1) return 2024-11-25
Expected behavior
dayjs.locale('zh-cn')
dayjs('2024-11-24').day(1) return '2024-11-18'
Information

  • Day.js Version 1.11.8
  • OS: windows
  • Browser chrome
  • Time zone: [e.g. GMT-08:00

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