Re: [Dhis2-devs] define weekly

2016-01-08 Thread Jason Pickering
Sure that sounds great. Please feel free to sent the patch to Morten. Regards, Jason On Fri, Jan 8, 2016 at 2:53 PM, David Siang Fong Oh wrote: > Hi Jason, Morten, > > We took a look at the code for the fix: >var startDate = this.calendar.newDate(year, 1, 1); >

Re: [Dhis2-devs] define weekly

2016-01-08 Thread David Siang Fong Oh
Hi Jason, Morten, We took a look at the code for the fix: var startDate = this.calendar.newDate(year, 1, 1); // startDate.add(-(startDate.dayOfWeek() - 1), 'd'); // rewind to start of week, might cross year boundary var day = startDate.dayOfWeek(); if( day == 0 ) // Sunday (0),

Re: [Dhis2-devs] define weekly

2016-01-07 Thread Jason Pickering
Hi Marta and Papa, We identified the bug (we think) and Morten has updated the code with a fix, and backported it back to version 2.17. New builds are available here http://ci.dhis2.org/ . I have tested this on one instance, and it seems to work OK now. Let us know if it works for you. Best

Re: [Dhis2-devs] define weekly

2016-01-05 Thread Marta Vila
Hi Jason, we just started receiving emails from users reporting the same problem. Will follow the evolution. Cheers On 4 January 2016 at 18:05, papa alioune Sokhna wrote: > Hi Jason, > If that information can be useful I noticed that the dhis our Ministry of > Health

Re: [Dhis2-devs] define weekly

2016-01-04 Thread Jason Pickering
Hi Papa, Could you be more specific? December 28th - Jan 3rd should be 2015W53. Usually years have 52 weeks, but this happens from time to time, due to how ISO weeks are defined. Are you seeing this in the analysis modules for last 52 weeks? Regards, Jason On Mon, Jan 4, 2016 at 4:18 PM, papa

[Dhis2-devs] define weekly

2016-01-04 Thread papa alioune Sokhna
Hello team how to define the numbers of weeks on dhis2 because the marking is not correct it there's a repitition of the week of December 28, 2015 to January 4, 2016. Best regards. -- Papa Alioune SOKHNA *Informaticien * Spécialité: développement d'application web, mobile et logiciels surs Tel:

Re: [Dhis2-devs] define weekly

2016-01-04 Thread papa alioune Sokhna
Hi Jason, If that information can be useful I noticed that the dhis our Ministry of Health does not have this problem and they have version 2.15. 2016-01-04 16:16 GMT+00:00 Jason Pickering : > Hi Papa, > > I am able to reproduce this. It is clearly a bug. > > I think

Re: [Dhis2-devs] define weekly

2016-01-04 Thread papa alioune Sokhna
the problem is that the date of December 28 2015 to January 3 2016 is considered both 2015W53 and 2016W1 in dhis2. 2016-01-04 15:55 GMT+00:00 papa alioune Sokhna : > I noticed in the function given before he repeated in the W53 2015 with W1 > 2016. When you try to enter

Re: [Dhis2-devs] define weekly

2016-01-04 Thread Jason Pickering
Hi Papa, I am able to reproduce this. It is clearly a bug. I think you should used 2015W53 for this period, but there could be a major problem if the weeks for 2016 are off. Jan/Lars, could you comment? Regards, Jason On Mon, Jan 4, 2016 at 4:55 PM, papa alioune Sokhna