The other day at work I stumbled upon this bug and thought it was worth to write a blog post about. Spoiler: It has nothing to do with timezones!
TLDR: According to ISO standard 8601 (which is what Python’s date.isocalendar().week uses for example), the first week of the year is the week with the first Thursday of the year. So sometimes the first few days of January belong to the last week of previous year, and sometimes the last few days of December belong to the first week of next year :D


Is this a thing outside the USA? It always bugs me when apps default to this. How does it make any sense for the week to start with the weekend?
Yes, most of Asia starts weeks on Sundays.
A string has two ends
A string is reversible, a week is not. A week has a beginning and an end.
I’ve generally seen Sunday to be the start of the week here, my current headcanon for it is that Sunday and Saturday sort of book-end on both sides of the week, hence week-end_s_ plural
I’m just curious how this works in practice.
When you say something like “Let’s meet up this weekend”, is it implied that you will meet on Saturday, since Sunday is the other end of next week, so technically a different weekend?
Honestly I think of Friday night and Saturday. Sunday feels more like its own thing,the beginning of the week. It’s the day you do any unfinished chores to prepare for the week. If sometime wanted to “meet up this weekend” I would not assume they meant Sunday, unless they wanted to grab brunch.
The weekend, and more specifically “this weekend” or “this coming weekend” means both days - Saturday and Sunday.
Sunday being a part of next week on a written calendar does not even register as a potential date “problem” with my brain in day-to-day talk.
Not quite sure actually, I think we end up specifying a day or implicitly consider both of them
God rested on the seventh day, but Sabbath is on Saturday. Tadaa, week starts on Sunday.
Yeah, so do we need to make Sunday a work day, too?