129January 1st is not always on the first week of the year jpvalencia.comc/programming · by null4141@programming.dev · 157d · 42 comments
on January 1st is not always on the first week of the year · c/programming · 7 pts · 156dThat video is a classic. It's exactly why I put "it has nothing to do with timezones" as subtitle for the post :) That was my first guess when I encountered the bug, before I realized it was about the ISO weeks. And in the end of the post I also added a list of falsehoods, different from your link tho: https://gist.github.com/timvisee/fcda9bbdff88d45cc9061606b4b923ca
on January 1st is not always on the first week of the year · c/programming · 4 pts · 156dThis is basically the takeaway from my blog post, if you're going to use weeks, use the ISO year instead of the calendar year :)
That video is a classic. It's exactly why I put "it has nothing to do with timezones" as subtitle for the post :) That was my first guess when I encountered the bug, before I realized it was about the ISO weeks.
And in the end of the post I also added a list of falsehoods, different from your link tho: https://gist.github.com/timvisee/fcda9bbdff88d45cc9061606b4b923ca
This is basically the takeaway from my blog post, if you're going to use weeks, use the ISO year instead of the calendar year :)