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

[Bug]: Forced setting of the calendar week to start from Monday [not a bug, just info] #52

Open
catative opened this issue Feb 13, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@catative
Copy link

What happened?

If you want to force the start of the calendar week from Monday, you need to add:

->customConfig([
      'locale' => [
          'ru',
          'firstDayOfWeek' => 1
      ]
  ])

Example:

Flatpickr::make('desired_arrival_date')
  ->label(__('fields.order.desired_arrival_date'))
  ->customConfig([
      'locale' => [
          'ru',
          'firstDayOfWeek' => 1
      ]
  ])
  ->weekNumbers(true),

How to reproduce the bug

It's not a bug, it's just info for everyone

Package Version

3.0.1

PHP Version

8.1.27

Laravel Version

10.43.0

Which operating systems does with happen with?

Linux

Notes

No response

@catative catative added the bug Something isn't working label Feb 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant