-
-
Notifications
You must be signed in to change notification settings - Fork 404
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] wrong (missing) week number displayed #679
Comments
Thanks for your fast reply. The datepicker is implemented as a part of a vue2 component.
The hint with overriding the function is very helpful, but as i can see in your comment, it is working quite properly in general... Maybe you can see some problem in my stated code. :/ |
Thank you so much for the solution! In fact the "date-format-parse" used to get the week number returns a wrong value (in my case with french locale, but I can't say for other countries).
|
Thanks for feedback, I'll check the |
Hi @mengxiong10 , |
@SoerenJantzenDtad |
Vue2-datepicker version: 3.10.2
Vue version: 2
By using the "show-week-number" flag of the datepicker, we had a confusing image at the end of 2021:
Actually the year 2021 had 52 weeks and the week with number 52 should be from 2021-12-27 to 2022-01-02.
The problem is caused by the first weeks in january:
The first problem is, that the first week of 2021 should have been the one from 2021-01-04 to 2021-01-10 and the second problem is, that the week with number 2 is missing. This behavior seems to be similar at every year.
Thanks for the great datepicker and best regards!
The text was updated successfully, but these errors were encountered: