latex-yearly-planner icon indicating copy to clipboard operation
latex-yearly-planner copied to clipboard

Week numbering with Sunday start of week

Open TK0343 opened this issue 1 year ago β€’ 1 comments

The numbering of the week does not change when using Sunday as the start of the week resulting in behavior such as in March in the image below. Any time there is a week consisting of just a Sunday on a monthly calendar it uses the previous week value instead of the next week as one would expect. This is also represented on the daily page for that date.

Screenshot_20230630-165647_ASUS_Launcher (1)

TK0343 avatar Jun 30 '23 22:06 TK0343

@TK0343 oh I see. Yes, it makes sense to change the week number there.

The reason it happens now is the week number is based on ISO week numbering. Sunday still belongs to week 13, and as there are no more days in the given week, the algorithm picks up the only available day in the week and gets its week number.

Thank you for the report, I'll look into it.

kudrykv avatar Jul 01 '23 04:07 kudrykv