We have moved to a new Sailfish OS Forum. Please start new discussions there.

[bug] Calendar is missing week number 1 for 2016 [released]

Tracked by Jolla (In release)

asked 2015-08-17 13:57:09 +0300

jahaugum gravatar image

updated 2015-08-17 14:45:45 +0300

In the calendar app when looking at january 2016 the last week of 2015 is week number 53 (which is correct), but the next one is week 2. This is wrong, as it should be 1. All other weeks of 2016 are shifted as well.

My locale is Norwegian.

edit retag flag offensive reopen delete

The question has been closed for the following reason "released in a software update" by misc11
close date 2017-01-07 03:25:57.437040


hmmm i think week 53 of 2015 is week 1 of 2016, since they share days. So everything is just as it should be, although you could be probably change week 53 to week 1

virgi26 ( 2015-08-17 14:48:51 +0300 )edit

No, week 53 is an addition to some years in order to make it all add up. Next one should be 1.

This Jolla calendar behaviour is different to other calendars like if you add week numbers to google calendar.

Another one as a reference: Norwegian Calendar 2016

jahaugum ( 2015-08-17 14:57:49 +0300 )edit

According to Wikipedia, this is clearly an error at least for "the EU and most other European countries". (The web reveals that this includes Norway, even though it's not part of the EU.)

Week one is defined as the week with the first thursday of the year, and it cannot share days with the last week of the previous year (ISO ISO 8601). So this is either a general bug or a localisation issue, as many other parts of the world (inluding USA, China, the Middle east,...) use different rules.

ossi1967 ( 2015-08-17 15:01:37 +0300 )edit

@jahaugum it seems that you are right

virgi26 ( 2015-08-17 15:05:34 +0300 )edit

@ossi1967 Isn't it impossible, that first week cannot share days with last week of previous year? This would only work if a January, 1st would be first day of the week.

As far as I know, according to ISO 8601 the first week of a year is only defined by the first Thursday occurence in January - no matter if any days of the previous December are included or not.

Anyway I agree, this seems to be a bug in week numbering, 2015 has 53 weeks, but should obviously be followed by week number 1.

zackbuffo ( 2015-08-17 15:21:19 +0300 )edit

1 Answer

Sort by » oldest newest most voted

answered 2015-08-17 15:08:59 +0300

tigeli gravatar image

Thanks for the bug report. I can reproduce the issue and have forwarded it to our developers.

edit flag offensive delete publish link more



Just can't resist to comment, that if Jolla would have been implemented in Java, there would have been a correct and powerful calendar functionality out of the box since day one ... well, ok, day two anyway.


Upp15 ( 2015-08-17 15:43:22 +0300 )edit

@Upp15, in addition to that there would also be an awful load of crap going on in the background.

Okw ( 2015-08-17 17:24:10 +0300 )edit

If I remember correctly Java gets the calendar functionality from the ICU http://site.icu-project.org/home which is available for C, C++ and Java.

brisalta ( 2015-08-17 17:32:54 +0300 )edit

@brisalta But the bug in question makes me fear, that there is some humble programmer somewhere in the harbour, who has been implementing the calendar all by him/herself from scratch ...

Upp15 ( 2015-08-17 17:45:05 +0300 )edit

@Okw If you would know Java, you would know, that there is nothing going on in the backgroud, unless the developer would want it so.

But ok, this is totally wrong forum for this. I apologize my provocation. :-)

Upp15 ( 2015-08-17 17:46:47 +0300 )edit

Question tools



Asked: 2015-08-17 13:57:09 +0300

Seen: 1,870 times

Last updated: Aug 17 '15