[bug] problem with week numbers in calendar in the US & indian locale
asked 2017-01-06 20:03:15 +0200
This post is a wiki. Anyone with karma >75 is welcome to improve it.
steps to reproduce
- have language set to "English (US)" (en_US) or an indian language
- open jolla calendar app
- look at week number of december 2016, january 2017 and february 2017
what happens
- last week of december 2016 is week number 52
- first week of january 2017 is week number 52 too => week 52 is duplicate
- last week of january 2017 is week number 4
- first week of february 2017 is week numer 6 => week 5 is skipped
what is expected
correct week numbers for january 2017 like in en_UK
tested for
- SFOS 2.0.5.6
- Jolla 1
@Telamon i can confirm that behavior! also week 52 of 2006 is duplicate (last week of dec 2016 and first week of jan 2017)
i can also say that according to ISO 8601 (which defines the numbering of the weeks):
i know that in the US the calendars are not aligned with the actual week (which starts according to ISO 8601 on monday!) so therefore the weeknumbers are only half-correct on US calendars anyway.
assuming that you want the number to be correct most of the time:
then the numbering for february is correct and the january is shifted by one week! between the views of jan and feb the calendar is corrected
a funny bug! i bet its caused because americans misalign their calendar to the actual week... also just checked it appears to also happen in indian languages! i only tested one now but i guess its all of them
misc11 ( 2017-01-07 00:04:46 +0200 )editp.s. @Telamon also: welcome to TJC! :) and: theres really no need to make this a wiki. its a bug report, you found it, you get the karma :) next time...
misc11 ( 2017-01-07 00:08:45 +0200 )editThanks for the confirmation and the welcoming message @misc11! Thus people living outside the realm of ISO 8601 are being deprived of week 5, but started the year with week 52. That's a compensation. :) I'm just starting using a Jolla, after my beloved N9 suddenly failed one month ago. I still have many things to learn, about the device itself and about the community!
Telamon ( 2017-01-07 00:30:44 +0200 )edit@Telamon the funny thing is that week numbers are not defined outside the realm of ISO 8601, at least not that im aware of... or do you know a US standard or sth?
misc11 ( 2017-01-07 02:20:49 +0200 )edit@Telamon i have changed your post a bit.... i hope thats ok :) since its a wiki anyway ;)
misc11 ( 2017-01-07 03:29:11 +0200 )edit