nextcloud-libraries/nextcloud-vue

`NcDateTimePicker` week labels off by one

Closed this issue ยท 2 comments

Originally reported in nextcloud/tasks#2366.

See here:
Screenshot 2024-01-09 at 13-17-51 Aufgaben - Nextcloud

The first week of January should be the week with the starting year's first Thursday in it (the formal
ISO definition), see https://en.wikipedia.org/wiki/ISO_8601

In the screenshot above, the first week starts 7 days to early. What is labeled as 1 should be 53 of 2022.

There seems to be a solution using moment.js

mengxiong10/vue2-datepicker#679 (comment)

It can be fixed without moment -> no need for "dead" software ๐Ÿ˜‰