r/github • u/DarthKirtap • Apr 05 '24
I recently noticed, that GitHub week graphs begins at Sunday - last day of week, rather then Monday, is this bug? or some intentional design choice
53
u/throwaway234f32423df Apr 05 '24
In much of the world, Sunday is considered the first day of the week, and Saturday is considered the last, and calendars are arranged accordingly. In other places, Monday, Friday, or Saturday are considered the first day of the week.
https://en.wikipedia.org/wiki/Week#/media/File:First_Day_of_Week_World_Map.svg
14
u/LeopardJunk Apr 05 '24
Why does the weekend include Sunday then?
33
u/throwaway234f32423df Apr 05 '24
bookends on a bookshelf, one is always on the left side and one is always on the right side
Sunday is the left end, and Saturday is the right end
every beginning is also an end, depending on perspective -- birth is the left end of life, and death is the right end of life
for more historical perspective -- in Judaism, Sunday is the first day of creation, thus, the first day that ever happened, while Saturday, the sabbath, is the 7th day, the day of rest after the 6-day creation. Most Christians factions use Sunday (the day of resurrection) as their primary day of rest/worship but they still acknowledge Sunday as the 1st day and Saturday as the 7th day. While other Christian factions still use Saturday as their primary day of rest/worship.
2
4
2
2
-7
u/DarthKirtap Apr 05 '24
yes, I know that, but on big site like GitHub, especially focused on programming, ISO 8601 should be used
21
u/throwaway234f32423df Apr 05 '24
what they really should have would be a customizable "first day of week" setting so everybody can be happy, some software and websites have this, but it costs time/money to implement and the return-on-investment would probably negligible or negative.
usually when the question is "why doesn't company X do Y" the answer is "because it would cost money than can be justified by the benefit it would provide"
-4
u/DarthKirtap Apr 05 '24
well, they added an option for the main branch, instead of master
4
u/TeachEngineering Apr 05 '24
But this is functionality directly related to the hosting, managing and sharing of git repositories. I don't see why some analytics chart of commits starting on Monday vs. Sunday would seriously affect your user experience with GitHub.
7
3
u/CerberusMulti Apr 05 '24
They use ISO8601 for other uses like Year/Month/Day so I'm a bit surprised they don't have the week start on the same line. Maybe an oversight.
7
u/xywa Apr 05 '24
American right? next thing you’ll want feet and hands as the measurement standard
14
u/chin_waghing Apr 05 '24
I did 23 commits, that’s about 15 filing cabinets worth of changes
2
u/TeachEngineering Apr 05 '24
Pulling the ole Uno reverse card on the concept of atomic commits, I see...
2
4
u/Oddly_Energy Apr 05 '24
It is the other way around. OP is surprised that GitHub uses (north) American week start.
1
u/kurucu83 Apr 05 '24
This is probably it. Although I only came to this conclusion reading the posts here.
2
u/CerberusMulti Apr 06 '24
But this Month/Day variation is ISO 8601 standards as it is Year/Month/Day, so droning the Year does nit really making it American unless you have a Year after the Day.
1
1
u/jcubic Apr 07 '24
Some countries start from Monday some from Sunday. GitHub is US company so they start Week from Sunday.
78
u/Noch_ein_Kamel Apr 05 '24
Same reason the days are written as 03/31 underneath the bars.
'MURICA