9646d4f543a42ae7a57e9ad5426904ecf571defc
Previous fix was considering Jan 1st and Dec 31st to find the week number, using ISO 8601 standard, and that was causing an issue with some dates like Jan 1st, 2017 which was displaying week# 52 instead of week #1. The issue happened because ISO 8601 always consider Monday as the first weekday, so as Jan 1st, 2017 is a Sunday, it' still considered week# 52 and not week# 1. After checking GtkCalendar code I noticed it uses the same ISO 8601 standard but instead of using Jan 1st or Dec 31st, it always get the week number based on the last day of that week, taking account if the week starts on Sunday or Monday, depending on the locale. In our example, using a calendar based on Sunday, Jan 1st, 2017 is the first day of the week and Jan 7th, 2017 is the last one. Therefore I changed week number code to always use the last day of the week. https://bugzilla.gnome.org/show_bug.cgi?id=757622
Calendar is a calendar application for GNOME. Design is an ongoing effort, so is development. The wiki is [here][1] [1]: https://wiki.gnome.org/Design/Apps/Calendar
Languages
C
97.6%
Meson
1.2%
CSS
0.7%
Python
0.3%
Shell
0.2%