As far as I know week periods are being calculated following ISO 8601.
Please see attachment, W53 2008-12-29 2009-01-04 is not according to ISO 8601 once 2008 only has 52 weeks. In 2009, for the same period we have W1 2008-12-29 2009-01-04. Is this correct?
Rua Pereira Marinho, 179
Bairro de Sommerchield
Maputo
Moçambique
Phone: (+258) 214 951 45
Fax: (+258) 214 951 46
DISCLAIMER: This message is confidential and may contain privileged information. It is for use only by the people or entities to whom it is addressed. If you are not an intended recipient, you should not disclose, distribute, copy, print, rely on or otherwise make use of this message. If an addressing or transmission error has misdirected it to you we would be grateful if you would please notify the sender by return, before deleting it from your system.
You are right this looks like a bug. The week of 2008-12-29 2009-01-04 should be the first week of 2009, not the last week of 2008, because the Thursday in that week falls in January not December.
As far as I know week periods are being calculated following ISO 8601.
Please see attachment, W53 2008-12-29 2009-01-04 is not according to ISO 8601 once 2008 only has 52 weeks. In 2009, for the same period we have W1 2008-12-29 2009-01-04. Is this correct?
Rua Pereira Marinho, 179
Bairro de Sommerchield
Maputo
Moçambique
Phone: (+258) 214 951 45
Fax: (+258) 214 951 46
DISCLAIMER: This message is confidential and may contain privileged information. It is for use only by the people or entities to whom it is addressed. If you are not an intended recipient, you should not disclose, distribute, copy, print, rely on or otherwise make use of this message. If an addressing or transmission error has misdirected it to you we would be grateful if you would please notify the sender by return, before deleting it from your system.
I think this may actually be a bug in the JavaScript for the dropdown. I think we had seen this previously for these last weeks of the year, but in the period table there is actually only one period for this period. See below from our period table which results from the following SQL statement.
zm_dhis2_nmcc=# SELECT * FROM period where periodtypeid = (SELECT periodtypeid from periodtype where name = ‘Weekly’) AND startdate >=‘2008-12-29’::date ORDER BY startdate LIMIT 2;
As far as I know week periods are being calculated following ISO 8601.
Please see attachment, W53 2008-12-29 2009-01-04 is not according to ISO 8601 once 2008 only has 52 weeks. In 2009, for the same period we have W1 2008-12-29 2009-01-04. Is this correct?
Rua Pereira Marinho, 179
Bairro de Sommerchield
Maputo
Moçambique
Phone: (+258) 214 951 45
Fax: (+258) 214 951 46
DISCLAIMER: This message is confidential and may contain privileged information. It is for use only by the people or entities to whom it is addressed. If you are not an intended recipient, you should not disclose, distribute, copy, print, rely on or otherwise make use of this message. If an addressing or transmission error has misdirected it to you we would be grateful if you would please notify the sender by return, before deleting it from your system.